From: Friendika Date: Thu, 3 Nov 2011 04:53:44 +0000 (-0700) Subject: fix "do not show status post for photo" setting when used with js_upload (value is... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=35305fb6d9bec0129e539a1c52e2729e8f9a1f50;p=friendica.git fix "do not show status post for photo" setting when used with js_upload (value is string "true/false" not integer or boolean) --- diff --git a/mod/photos.php b/mod/photos.php index 63bd46a6cb..51d6a4b65c 100644 --- a/mod/photos.php +++ b/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'])));