aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Import/refimport.php2
-rw-r--r--include/photos.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/Import/refimport.php b/include/Import/refimport.php
index 181b2b398..b9b6bf639 100644
--- a/include/Import/refimport.php
+++ b/include/Import/refimport.php
@@ -174,7 +174,7 @@ function reflect_photo_callback($matches) {
'resource_id' => str_replace('-','',$hash),
'filename' => $hash . '.jpg',
'type' => 'image/jpeg',
- 'not_visible' => true
+ 'visible' => false
)
);
diff --git a/include/photos.php b/include/photos.php
index cd753ffea..4841e649d 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -54,8 +54,8 @@ function photo_upload($channel, $observer, $args) {
else
$visible = 0;
- if(intval($args['not_visible']) || $args['not_visible'] === 'true')
- $visible = 0;
+ if(intval($args['visible']) || $args['visible'] === 'true')
+ $visible = 1;
$str_group_allow = perms2str(((is_array($args['group_allow'])) ? $args['group_allow'] : explode(',',$args['group_allow'])));
$str_contact_allow = perms2str(((is_array($args['contact_allow'])) ? $args['contact_allow'] : explode(',',$args['contact_allow'])));