]> git.mjollnir.org Git - s9y.git/commitdiff
postgresql fix by CaptainCrunch from the forums. Thanks!
authorgarvinhicking <garvinhicking>
Fri, 14 Oct 2005 10:09:59 +0000 (10:09 +0000)
committergarvinhicking <garvinhicking>
Fri, 14 Oct 2005 10:09:59 +0000 (10:09 +0000)
plugins/serendipity_event_karma/serendipity_event_karma.php

index ea137d5ef4017444fe0a1e8efdd4521ef338c768..4d6d5fb6d493762fd4993fb2d613905c3e7af1ad 100644 (file)
@@ -65,7 +65,7 @@ class serendipity_event_karma extends serendipity_event
         $propbag->add('description',   PLUGIN_KARMA_BLAHBLAH);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Garvin Hicking');
-        $propbag->add('version',       '1.5');
+        $propbag->add('version',       '1.6');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
@@ -392,7 +392,7 @@ class serendipity_event_karma extends serendipity_event
                                      AS e
                                   ON k.entryid = e.id
                             WHERE k.{$rows[0]} IS NOT NULL AND k.{$rows[0]} != 0
-                            GROUP BY e.id, e.title ORDER BY no {$rows[1]} LIMIT {$addData['maxitems']}";
+                            GROUP BY e.id, e.title, e.timestamp ORDER BY no {$rows[1]} LIMIT {$addData['maxitems']}";
                         $sql_rows = serendipity_db_query($q);
 ?>
     <dt><strong><?php echo constant('PLUGIN_KARMA_STATISTICS_' . strtoupper($key)); ?></strong></dt>