fix "do not show status post for photo" setting when used with js_upload (value is string "true/false" not integer or boolean)
This commit is contained in:
parent
bd48a016af
commit
35305fb6d9
|
@ -593,7 +593,7 @@ function photos_post(&$a) {
|
||||||
else
|
else
|
||||||
$visible = 0;
|
$visible = 0;
|
||||||
|
|
||||||
if(intval($_REQUEST['not_visible']))
|
if(intval($_REQUEST['not_visible']) || $_REQUEST['not_visible'] === 'true')
|
||||||
$visible = 0;
|
$visible = 0;
|
||||||
|
|
||||||
$str_group_allow = perms2str(((is_array($_REQUEST['group_allow'])) ? $_REQUEST['group_allow'] : explode(',',$_REQUEST['group_allow'])));
|
$str_group_allow = perms2str(((is_array($_REQUEST['group_allow'])) ? $_REQUEST['group_allow'] : explode(',',$_REQUEST['group_allow'])));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user