diff options
author | Habeas Codice <habeascodice@federated.social> | 2014-11-17 18:03:23 -0800 |
---|---|---|
committer | Habeas Codice <habeascodice@federated.social> | 2014-11-17 18:03:23 -0800 |
commit | a7d58277a206c048b83a4802c983594f97cf9d6a (patch) | |
tree | 18c468e186862eef45251ae870f6ec657d7c44de /mod/photos.php | |
parent | 4529c20ba81f71a92be21133384dd825cd071409 (diff) | |
parent | e61dbf722d35b748ff57b1260f30b9ac0fda60aa (diff) | |
download | volse-hubzilla-a7d58277a206c048b83a4802c983594f97cf9d6a.tar.gz volse-hubzilla-a7d58277a206c048b83a4802c983594f97cf9d6a.tar.bz2 volse-hubzilla-a7d58277a206c048b83a4802c983594f97cf9d6a.zip |
Merge branch 'master' of https://github.com/habeascodice/red
Diffstat (limited to 'mod/photos.php')
-rw-r--r-- | mod/photos.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/photos.php b/mod/photos.php index ad95d6a88..ab848c709 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -618,7 +618,7 @@ function photos_content(&$a) { $album = hex2bin($datum); $r = q("SELECT `resource_id`, max(`scale`) AS `scale` FROM `photo` WHERE `uid` = %d AND `album` = '%s' - AND `scale` <= 4 and ((photo_flags = %d) or (photo_flags & %d )) $sql_extra GROUP BY `resource_id`", + AND `scale` <= 4 and ((photo_flags = %d) or (photo_flags & %d ) > 0) $sql_extra GROUP BY `resource_id`", intval($owner_uid), dbesc($album), intval(PHOTO_NORMAL), |