From: garvinhicking Date: Mon, 3 Apr 2006 11:00:29 +0000 (+0000) Subject: Fix querying wrong column, thanks to Hurricane X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8b6081517345eaae1c5a219a46e62742f4059c45;p=s9y.git Fix querying wrong column, thanks to Hurricane (#1462845) --- diff --git a/plugins/serendipity_event_statistics/serendipity_event_statistics.php b/plugins/serendipity_event_statistics/serendipity_event_statistics.php index 7740cd7..2534b1a 100644 --- a/plugins/serendipity_event_statistics/serendipity_event_statistics.php +++ b/plugins/serendipity_event_statistics/serendipity_event_statistics.php @@ -20,7 +20,7 @@ class serendipity_event_statistics extends serendipity_event $propbag->add('description', PLUGIN_EVENT_STATISTICS_DESC); $propbag->add('stackable', false); $propbag->add('author', 'Arnan de Gans, Garvin Hicking, Fredrik Sandberg'); - $propbag->add('version', '1.40'); + $propbag->add('version', '1.41'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', @@ -106,7 +106,7 @@ class serendipity_event_statistics extends serendipity_event } //checking if db tables exists, otherwise install them - $tableChecker = serendipity_db_query("SELECT counter_id FROM {$serendipity['dbPrefix']}visitors_count LIMIT 1", true); + $tableChecker = serendipity_db_query("SELECT counter_id FROM {$serendipity['dbPrefix']}visitors LIMIT 1", true); if (!is_array($tableChecker)) { $this->createTables(); }