From 24cd0d98a77d52485925d111c5dee3654d9a7578 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 31 Jan 2013 16:39:50 -0800 Subject: this should fix xchan photo permissions --- mod/photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']); -- cgit v1.2.3