Skip to content

Commit ab6c4fb

Browse files
authored
Fix Postgres errors
1 parent 70dac44 commit ab6c4fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/search.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ public function recent_comments($limit, $start = 0)
299299
$this->comments_table => 'c',
300300
),
301301
'WHERE' => 'i.image_id = c.comment_image_id and ' . $this->db->sql_in_set('image_album_id', $this->gallery_auth->acl_album_ids('c_read'), false, true),
302+
'GROUP_BY' => 'c.comment_id, c.comment_time',
302303
'ORDER_BY' => 'comment_time DESC'
303304
);
304305
$sql_array['WHERE'] .= ' AND ((' . $this->db->sql_in_set('image_album_id', array_diff($this->gallery_auth->acl_album_ids('i_view'), $exclude_albums), false, true) . ' AND image_status <> ' . \phpbbgallery\core\block::STATUS_UNAPPROVED . ')

0 commit comments

Comments
 (0)