mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 06:35:15 +00:00
fix lost $sql_extra in recent sql query changes
This commit is contained in:
parent
ad8668be9e
commit
8b1e83128a
1 changed files with 1 additions and 1 deletions
|
@ -1175,7 +1175,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 ) group by resource_id) ph
|
||||
AND (photo_flags = %d or photo_flags = %d ) $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'),
|
||||
|
|
Loading…
Reference in a new issue