fix boolean
This commit is contained in:
parent
ee38bebbd6
commit
bcaa32a83a
@ -1160,7 +1160,7 @@ function photos_content(&$a) {
|
|||||||
//$o = '';
|
//$o = '';
|
||||||
|
|
||||||
$r = q("SELECT `resource_id`, max(`scale`) AS `scale` FROM `photo` WHERE `uid` = %d AND `album` != '%s' AND `album` != '%s'
|
$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']),
|
intval($a->data['channel']['channel_id']),
|
||||||
dbesc('Contact Photos'),
|
dbesc('Contact Photos'),
|
||||||
dbesc( t('Contact Photos')),
|
dbesc( t('Contact Photos')),
|
||||||
|
Reference in New Issue
Block a user