aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-07-17 20:00:07 -0700
committerzotlabs <mike@macgirvin.com>2017-07-17 20:00:07 -0700
commit42abc2201c8e7c3798ddfe2fd32300d211035364 (patch)
tree12bc560fb77e42cb86d327477bb5252be2f91e06
parent15e836b7dd2fed3f97f134928d88e13db1d8a7f4 (diff)
parent27257de995f6d2da0a180cbd20a06614deee2b33 (diff)
downloadvolse-hubzilla-42abc2201c8e7c3798ddfe2fd32300d211035364.tar.gz
volse-hubzilla-42abc2201c8e7c3798ddfe2fd32300d211035364.tar.bz2
volse-hubzilla-42abc2201c8e7c3798ddfe2fd32300d211035364.zip
Merge branch 'bug827'
-rw-r--r--include/photos.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/photos.php b/include/photos.php
index b4cc89502..46b833531 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -598,9 +598,10 @@ function photos_album_exists($channel_id, $observer_hash, $album) {
if(! $r) {
$r = q("SELECT folder, hash, is_dir, filename, os_path, display_path FROM attach WHERE filename = '%s' AND is_dir = 1 AND uid = %d $sql_extra limit 1",
- dbesc(hex2bin($album)),
- intval($channel_id)
- );
+ dbesc(hex2bin($album)),
+ intval($channel_id)
+ );
+ }
return (($r) ? $r[0] : false);
}