Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_karma
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18072/plugins/serendipity_event_karma
Modified Files:
Tag: branch-smarty
serendipity_event_karma.php
Log Message:
MFH
Index: serendipity_event_karma.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_karma/serendipity_event_karma.php,v
retrieving revision 1.14.2.8
retrieving revision 1.14.2.9
diff -u -d -r1.14.2.8 -r1.14.2.9
--- serendipity_event_karma.php 29 Oct 2004 11:02:35 -0000 1.14.2.8
+++ serendipity_event_karma.php 29 Oct 2004 11:37:36 -0000 1.14.2.9
@@ -543,7 +543,7 @@
if ($addData['extended']) {
$entryid = (int)serendipity_db_escape_string($eventData[0]['id']);
- if ($track_clicks) {
+ if ($track_clicks && !$addData['preview']) {
$sql = serendipity_db_query('UPDATE ' . $serendipity['dbPrefix'] . 'karma SET visits = visits + 1 WHERE entryid = ' . $entryid, true);
if (serendipity_db_affected_rows() < 1) {
serendipity_db_query("INSERT INTO {$serendipity['dbPrefix']}karma (entryid, points, votes, lastvote, visits) VALUES ('$entryid', 0, 0, 0, 1)");
|