Browse Source

fix "do not show status post for photo" setting when used with js_upload (value is string "true/false" not integer or boolean)

pull/1/head
Friendika 11 years ago
parent
commit
35305fb6d9
  1. 4
      mod/photos.php

4
mod/photos.php

@ -592,8 +592,8 @@ function photos_post(&$a) {
$visible = 1;
else
$visible = 0;
if(intval($_REQUEST['not_visible']))
if(intval($_REQUEST['not_visible']) || $_REQUEST['not_visible'] === 'true')
$visible = 0;
$str_group_allow = perms2str(((is_array($_REQUEST['group_allow'])) ? $_REQUEST['group_allow'] : explode(',',$_REQUEST['group_allow'])));

Loading…
Cancel
Save