Version 0.9.1 ()
------------------------------------------------------------------------
+ * Fix visitor tracking in statistics plugin (garvinhicking)
+
* Fix incorrect entry count in categories sidebar plugin (was also
counting drafts)
$propbag->add('description', PLUGIN_EVENT_STATISTICS_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking, Fredrik Sandberg');
- $propbag->add('version', '1.21');
+ $propbag->add('version', '1.22');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
//Unique visitors are beeing registered and counted here. Calling function below.
$sessionChecker = serendipity_db_query("SELECT count(sessID) FROM {$serendipity['dbPrefix']}visitors WHERE '".serendipity_db_escape_string(session_id())."' = sessID GROUP BY sessID", true);
- if ((is_array($sessionChecker)) && ($sessionChecker[0] == 0)) {
+ if (!is_array($sessionChecker) || (is_array($sessionChecker)) && ($sessionChecker[0] == 0)) {
// avoiding banned browsers
$banned_bots = $this->get_config('banned_bots');
$found = 'yes';
}
}
- if ($found=='no'){
+ if ($found == 'no'){
$this->countVisitor();
}
}