diff --git a/formwork/Core/Formwork.php b/formwork/Core/Formwork.php index 14e3049f..d050b9e2 100755 --- a/formwork/Core/Formwork.php +++ b/formwork/Core/Formwork.php @@ -252,11 +252,11 @@ public function run() $this->cache->save($this->cacheKey, $page); } } - } - if ($this->option('statistics.enabled')) { - $statistics = new Statistics(); - $statistics->trackVisit(); + if ($this->option('statistics.enabled')) { + $statistics = new Statistics(); + $statistics->trackVisit(); + } } }