aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorHabeas Codice <habeascodice@federated.social>2014-11-17 15:13:49 -0800
committerHabeas Codice <habeascodice@federated.social>2014-11-17 15:13:49 -0800
commitbcaa32a83a965f111bfc2ba085a59857a4fa0c2d (patch)
tree48e3639507953f99d6c5621c39357a679a031482 /mod
parentee38bebbd6a641eb953eacf493c085053442d972 (diff)
downloadvolse-hubzilla-bcaa32a83a965f111bfc2ba085a59857a4fa0c2d.tar.gz
volse-hubzilla-bcaa32a83a965f111bfc2ba085a59857a4fa0c2d.tar.bz2
volse-hubzilla-bcaa32a83a965f111bfc2ba085a59857a4fa0c2d.zip
fix boolean
Diffstat (limited to 'mod')
-rw-r--r--mod/photos.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 95fa162c9..a2e5d1c1b 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -1160,7 +1160,7 @@ function photos_content(&$a) {
//$o = '';
$r = q("SELECT `resource_id`, max(`scale`) AS `scale` FROM `photo` WHERE `uid` = %d AND `album` != '%s' AND `album` != '%s'
- and ((photo_flags = %d) or (photo_flags & %d)) $sql_extra GROUP BY `resource_id`",
+ and ((photo_flags = %d) or (photo_flags & %d) > 0) $sql_extra GROUP BY `resource_id`",
intval($a->data['channel']['channel_id']),
dbesc('Contact Photos'),
dbesc( t('Contact Photos')),