minor photo flag issue - and some more whitespace edits
This commit is contained in:
parent
7fec939c23
commit
50244f943d
@ -257,7 +257,7 @@ function perm_is_allowed($uid,$observer_xchan,$permission) {
|
||||
|
||||
$channel_perm = $global_perms[$permission][0];
|
||||
|
||||
$r = q("select %s, channel_hash from channel where channel_id = %d limit 1",
|
||||
$r = q("select %s, channel_pageflags, channel_hash from channel where channel_id = %d limit 1",
|
||||
dbesc($channel_perm),
|
||||
intval($uid)
|
||||
);
|
||||
|
@ -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'),
|
||||
|
Reference in New Issue
Block a user