Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_karma
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20129/serendipity_event_karma
Modified Files:
serendipity_event_karma.php
Log Message:
fixed some statistics display
Index: serendipity_event_karma.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_karma/serendipity_event_karma.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- serendipity_event_karma.php 13 Oct 2004 09:54:27 -0000 1.18
+++ serendipity_event_karma.php 27 Oct 2004 11:03:06 -0000 1.19
@@ -410,9 +410,8 @@
JOIN {$serendipity['dbPrefix']}entries
AS e
ON k.entryid = e.id
- WHERE k.{$rows[0]} IS NOT NULL
- GROUP BY e.id, e.title ORDER BY k.{$rows[0]} {$rows[1]} LIMIT {$addData['maxitems']}";
-
+ 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']}";
$sql_rows = serendipity_db_query($q);
?>
<dt><strong><?php echo constant('PLUGIN_KARMA_STATISTICS_' . strtoupper($key)); ?></strong></dt>
@@ -609,4 +608,4 @@
}
/* vim: set sts=4 ts=4 expandtab : */
-?>
+?>
\ No newline at end of file
|