getLabelCounters: add caption to group by to fix query failing on pgsql 8.4 (refs #545)

This commit is contained in:
Andrew Dolgov 2013-03-05 15:36:25 +04:00
parent 1f1d322425
commit 123a764372
1 changed files with 2 additions and 1 deletions

View File

@ -1414,7 +1414,8 @@
FROM ttrss_labels2 LEFT JOIN ttrss_user_labels2 ON
(ttrss_labels2.id = label_id)
LEFT JOIN ttrss_user_entries ON (ref_id = article_id AND unread = true)
WHERE ttrss_labels2.owner_uid = $owner_uid GROUP BY ttrss_labels2.id");
WHERE ttrss_labels2.owner_uid = $owner_uid GROUP BY ttrss_labels2.id,
ttrss_labels2.caption");
while ($line = db_fetch_assoc($result)) {