diff --git a/public/include/classes/statistics.class.php b/public/include/classes/statistics.class.php index 30bdb078..be80e77f 100644 --- a/public/include/classes/statistics.class.php +++ b/public/include/classes/statistics.class.php @@ -31,7 +31,7 @@ class Statistics extends Base { if ($data = $this->memcache->get(__FUNCTION__)) return $data; $stmt = $this->mysqli->prepare(" SELECT - time FROM " . $this->block->getTableName() . " + IFNULL(time, 0) AS time FROM " . $this->block->getTableName() . " ORDER BY id ASC LIMIT 1"); if ($this->checkStmt($stmt) && $stmt->execute() && $result = $stmt->get_result()) return $result->fetch_object()->time;