From 6952c5a3f5b2eb975b530aad48f3bbd57bcc1451 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 6 Dec 2022 11:15:53 +0000 Subject: $visitor is a string --- include/photos.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/photos.php b/include/photos.php index de9cc6b13..6e00ffbf0 100644 --- a/include/photos.php +++ b/include/photos.php @@ -64,7 +64,7 @@ function photo_upload($channel, $observer, $args) { } $ac = $acl->get(); - +hz_syslog(print_r($ac,true)); $width = $height = 0; if ($args['getimagesize']) { @@ -405,7 +405,7 @@ function photo_upload($channel, $observer, $args) { } } - $attribution = (($visitor) ? $visitor['xchan_url'] : $channel['xchan_url']); + $attribution = (($visitor) ? $visitor : $channel['xchan_url']); //// Create item object $object = [ -- cgit v1.2.3