From bcaa32a83a965f111bfc2ba085a59857a4fa0c2d Mon Sep 17 00:00:00 2001 From: Habeas Codice Date: Mon, 17 Nov 2014 15:13:49 -0800 Subject: fix boolean --- mod/photos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/photos.php') 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')), -- cgit v1.2.3