aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod/photo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/photo.php b/mod/photo.php
index c8fd55706..aff4dc895 100644
--- a/mod/photo.php
+++ b/mod/photo.php
@@ -88,7 +88,7 @@ function photo_init(&$a) {
);
if($r) {
- $allowed = perm_is_allowed($r[0]['uid'],$observer_xchan,'view_photos');
+ $allowed = (($r[0]['uid']) ? perm_is_allowed($r[0]['uid'],$observer_xchan,'view_photos') : true);
$sql_extra = permissions_sql($r[0]['uid']);