includes/log.php
changeset 1152 e3fb74e3e74e
parent 1081 745200a9cc2a
child 1175 1e2c9819ede3
--- 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;