From dc4d1b3b8e93df06c7b814380891e633245ecf79 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Mon, 11 Nov 2013 12:24:54 +0100 Subject: [PATCH] [FIX] Class Warning on new pools --- public/include/classes/statistics.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;