aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-11-02 21:53:44 -0700
committerFriendika <info@friendika.com>2011-11-02 21:53:44 -0700
commit35305fb6d9bec0129e539a1c52e2729e8f9a1f50 (patch)
treea46c3270fd28599708ebfac4559a7c3a82757428 /mod/photos.php
parentbd48a016afeaa9aa6a67739fad9bda63814372f0 (diff)
downloadvolse-hubzilla-35305fb6d9bec0129e539a1c52e2729e8f9a1f50.tar.gz
volse-hubzilla-35305fb6d9bec0129e539a1c52e2729e8f9a1f50.tar.bz2
volse-hubzilla-35305fb6d9bec0129e539a1c52e2729e8f9a1f50.zip
fix "do not show status post for photo" setting when used with js_upload (value is string "true/false" not integer or boolean)
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 63bd46a6c..51d6a4b65 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'])));