PostgreSQL: Fixed another bug, this time in the log fetch code
authorDan
Sun, 06 Dec 2009 22:05:02 -0500
changeset 1152 e3fb74e3e74e
parent 1151 8f0cbce6d5f3
child 1153 124ebcbb6a31
PostgreSQL: Fixed another bug, this time in the log fetch code
includes/log.php
--- a/includes/log.php	Sun Dec 06 21:56:46 2009 -0500
+++ b/includes/log.php	Sun Dec 06 22:05:02 2009 -0500
@@ -163,7 +163,7 @@
     $columns = ( $just_page_count ) ? 'COUNT(*)' : 'log_id, action, page_id, namespace, CHAR_LENGTH(page_text) AS revision_size, author, time_id, edit_summary, minor_edit';
     $sql = 'SELECT ' . $columns . ' FROM ' . table_prefix . "logs AS l\n"
          . "  WHERE log_type = 'page' AND is_draft != 1$where_extra\n"
-         . ( $just_page_count ? '' : "  GROUP BY log_id, action, page_id, namespace, page_text, author, time_id, edit_summary, minor_edit\n" )
+         . "  GROUP BY log_id, action, page_id, namespace, page_text, author, time_id, edit_summary, minor_edit\n"
          . "  ORDER BY time_id DESC $limit;";
     
     return $sql;