aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-21 21:13:14 -0700
committerzotlabs <mike@macgirvin.com>2017-03-21 21:13:14 -0700
commit83a78a949d67dbbe3294f7f02ffeb45b6f96423d (patch)
tree21ad335485f62985a350cbf926a0015f3569e40e /include
parenta7bf4366cee5dcdabe3eb6dbcb144727d2158775 (diff)
downloadvolse-hubzilla-83a78a949d67dbbe3294f7f02ffeb45b6f96423d.tar.gz
volse-hubzilla-83a78a949d67dbbe3294f7f02ffeb45b6f96423d.tar.bz2
volse-hubzilla-83a78a949d67dbbe3294f7f02ffeb45b6f96423d.zip
photos_album_exists() requires an observer to work correctly; provide it.
Diffstat (limited to 'include')
-rw-r--r--include/photos.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/photos.php b/include/photos.php
index e68290c9d..69b31de9f 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -581,9 +581,9 @@ function photos_list_photos($channel, $observer, $album = '') {
* @return boolean
*/
-function photos_album_exists($channel_id, $album) {
+function photos_album_exists($channel_id, $observer_hash, $album) {
- $sql_extra = permissions_sql($channel_id);
+ $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),