diff options
author | Habeas Codice <habeascodice@federated.social> | 2014-11-17 16:01:17 -0800 |
---|---|---|
committer | Habeas Codice <habeascodice@federated.social> | 2014-11-17 16:01:17 -0800 |
commit | 4fa0df2927323a10fb813f4303f9c472e214c48d (patch) | |
tree | 38cd6f7c38fc386e4e090f41b7313590aadf150e | |
parent | 96427a23a3523daf2c1966fe1b8a6e119e797e50 (diff) | |
download | volse-hubzilla-4fa0df2927323a10fb813f4303f9c472e214c48d.tar.gz volse-hubzilla-4fa0df2927323a10fb813f4303f9c472e214c48d.tar.bz2 volse-hubzilla-4fa0df2927323a10fb813f4303f9c472e214c48d.zip |
another one
-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), |