diff --git a/plugins/serendipity_event_statistics/serendipity_event_statistics.php b/plugins/serendipity_event_statistics/serendipity_event_statistics.php index add88862..0f8e39b7 100644 --- a/plugins/serendipity_event_statistics/serendipity_event_statistics.php +++ b/plugins/serendipity_event_statistics/serendipity_event_statistics.php @@ -105,7 +105,7 @@ class serendipity_event_statistics extends serendipity_event $this->createTables(); } - if ($this->get_config('db_indices_created', 'false') !== '1') { + if ((int)$this->get_config('db_indices_created', '0') == 0) { $this->updateTables(); }