diff options
author | zotlabs <mike@macgirvin.com> | 2017-03-21 21:13:14 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-03-29 14:11:22 +0200 |
commit | 032b6f193df3e9de1e0af1a742f047b4b3e29023 (patch) | |
tree | 1ecf94ef4f4eea7fe29bdb36a0692851e4193740 /include | |
parent | e49c59959b328d28b05b484bd7dbe49198fc5710 (diff) | |
download | volse-hubzilla-032b6f193df3e9de1e0af1a742f047b4b3e29023.tar.gz volse-hubzilla-032b6f193df3e9de1e0af1a742f047b4b3e29023.tar.bz2 volse-hubzilla-032b6f193df3e9de1e0af1a742f047b4b3e29023.zip |
photos_album_exists() requires an observer to work correctly; provide it.
Diffstat (limited to 'include')
-rw-r--r-- | include/photos.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/photos.php b/include/photos.php index de947fd4b..49c2d66f5 100644 --- a/include/photos.php +++ b/include/photos.php @@ -582,9 +582,8 @@ function photos_list_photos($channel, $observer, $album = '') { * @param string $album name of the album * @return boolean */ -function photos_album_exists($channel_id, $album) { - - $sql_extra = permissions_sql($channel_id); +function photos_album_exists($channel_id, $observer_hash, $album) { + $sql_extra = permissions_sql($channel_id,$observer_hash); $r = q("SELECT folder, hash, is_dir, filename, os_path, display_path FROM attach WHERE hash = '%s' AND is_dir = 1 AND uid = %d $sql_extra limit 1", dbesc($album), |