From 55515a25d179e75bf88061b83eb102712eefdb4c Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 11 Feb 2016 15:24:21 -0800 Subject: guest photo upload failing when js_upload is in use due to non-existent acl parameters --- mod/photos.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mod/photos.php') diff --git a/mod/photos.php b/mod/photos.php index d6105c580..944686637 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -603,6 +603,14 @@ function photos_content(&$a) { $aclselect = (($_is_owner) ? populate_acl($channel_acl,false) : ''); + // this is wrong but is to work around an issue with js_upload wherein it chokes if these variables + // don't exist. They really should be set to a parseable representation of the channel's default permissions + // which can be processed by getSelected() + + if(! $aclselect) { + $aclselect = ''; + } + $selname = (($datum) ? hex2bin($datum) : ''); $albums = ((array_key_exists('albums', $a->data)) ? $a->data['albums'] : photos_albums_list($a->data['channel'],$a->data['observer'])); -- cgit v1.2.3