fix bug in pgsql, thanks to captaincrunch from the forums
authorgarvinhicking <garvinhicking>
Wed, 26 Oct 2005 08:58:42 +0000 (08:58 +0000)
committergarvinhicking <garvinhicking>
Wed, 26 Oct 2005 08:58:42 +0000 (08:58 +0000)
docs/NEWS
include/plugin_internal.inc.php

index a4ee7341fda9becb4dfa4e9b62e13334cec0d7ec..ac46a97a32e116e66435442089aaa09d4ab1ec87 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,9 @@
 Version 0.9-beta4 ()
 ------------------------------------------------------------------------
 
+    * Fix categories plugin to properly work on pgsql installations.
+      Thanks to CaptainCrunch!
+
     * Make serendipity_makeFilename function be UTF-8 aware.
 
     * Fix syndication plugin not allowing to configure Atom 1.0 feed.
index 3b33d534ead9369ecfd2e6ae6617151c78a9fbff..c81f7197fc19d9b1fcee07840e321cee4de6a0b5 100644 (file)
@@ -1314,7 +1314,7 @@ class serendipity_categories_plugin extends serendipity_plugin {
                                                  {$serendipity['dbPrefix']}category c,
                                                  {$serendipity['dbPrefix']}entries e
                                             WHERE ec.categoryid = c.categoryid AND ec.entryid = e.id
-                                            GROUP BY ec.categoryid, c.category_name
+                                            GROUP BY c.categoryid, c.category_name
                                             ORDER BY postings DESC";
             $category_rows  = serendipity_db_query($cat_sql);
             if (is_array($category_rows)) {