Version 1.0 ()
------------------------------------------------------------------------
+ * Fix Bug #1377095 - Not counting correct number of entries on the
+ /archives page. The page was counting entries belonging to more
+ then one categories multiple times. (garvinhicking)
+
* Fix MoveableType importer to better import comments (garvinhicking)
* Allow category sidebar plugin to hide the parent category, if
AND timestamp >= $s
AND timestamp <= $e "
. (!serendipity_db_bool($serendipity['showFutureEntries']) ? " AND timestamp <= " . time() : '')
- . (!empty($cat_sql) ? ' AND ' . $cat_sql : '')
- );
- $entry_count = $entries[0][0];
+ . (!empty($cat_sql) ? ' AND ' . $cat_sql : '') . "
+ GROUP BY ec.entryid", false, 'assoc');
+ if (is_array($entries)) {
+ $entry_count = count($entries);
+ } else {
+ $entry_count = 0;
+ }
/* A silly hack to get the maximum amount of entries per month */
if ($entry_count > $max) {