]> git.mxchange.org Git - friendica.git/commitdiff
fix "do not show status post for photo" setting when used with js_upload (value is...
authorFriendika <info@friendika.com>
Thu, 3 Nov 2011 04:53:44 +0000 (21:53 -0700)
committerFriendika <info@friendika.com>
Thu, 3 Nov 2011 04:53:44 +0000 (21:53 -0700)
mod/photos.php

index 63bd46a6cbde1ddeb63795dfe7580e1a561bdf14..51d6a4b65cbe7ddaa2a417be89a399456d455c27 100644 (file)
@@ -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'])));