aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-19 16:29:35 -0800
committerfriendica <info@friendica.com>2014-11-19 16:29:35 -0800
commit50244f943d0a14e3d7a7fcbe7f51d02dbe039879 (patch)
tree3e3272e4026ebf1244321541a9b7b67418bb2231 /mod
parent7fec939c23f2a23c8ac123d8a416cb2bde9ffbd9 (diff)
downloadvolse-hubzilla-50244f943d0a14e3d7a7fcbe7f51d02dbe039879.tar.gz
volse-hubzilla-50244f943d0a14e3d7a7fcbe7f51d02dbe039879.tar.bz2
volse-hubzilla-50244f943d0a14e3d7a7fcbe7f51d02dbe039879.zip
minor photo flag issue - and some more whitespace edits
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 ce24762b1..7a9229cc4 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -1176,7 +1176,7 @@ function photos_content(&$a) {
$r = q("SELECT p.resource_id, p.id, p.filename, p.type, p.album, p.scale, p.created FROM photo p INNER JOIN
(SELECT resource_id, max(scale) 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) ph
+ AND (photo_flags = %d or ( photo_flags & %d ) > 0 ) $sql_extra group by resource_id) ph
ON (p.resource_id = ph.resource_id and p.scale = ph.scale) ORDER by p.created DESC LIMIT %d OFFSET %d",
intval($a->data['channel']['channel_id']),
dbesc('Contact Photos'),