From 277b9c6af8f7bae6b71dbaef838d0eef457009e6 Mon Sep 17 00:00:00 2001 From: Pautina Date: Sun, 9 Jul 2017 19:02:43 +0300 Subject: [PATCH] Resolve issue #85 --- api/libs/api.dbconnect.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/libs/api.dbconnect.php b/api/libs/api.dbconnect.php index ce70707ff..197841254 100644 --- a/api/libs/api.dbconnect.php +++ b/api/libs/api.dbconnect.php @@ -2,7 +2,7 @@ error_reporting(E_ALL ^ E_DEPRECATED); //hide some deprecated warnings on 5.6 :( -Class DbConnect { +class DbConnect { var $host = ''; var $user = ''; @@ -97,7 +97,7 @@ public function fetchobject() { if (!extension_loaded('mysqli')) { return(@mysql_fetch_object($this->result, MYSQL_ASSOC)); } else { - return($this->result->fetch_object()); + return($result = $this->result->fetch_object()); } } @@ -105,7 +105,7 @@ public function fetcharray() { if (!extension_loaded('mysqli')) { return(mysql_fetch_array($this->result)); } else { - return($this->result->fetch_array(MYSQLI_NUM)); + return($result = @$this->result->fetch_array(MYSQLI_NUM)); } } @@ -113,7 +113,7 @@ public function fetchassoc() { if (!extension_loaded('mysqli')) { return(@mysql_fetch_assoc($this->result)); } else { - return(@$this->result->fetch_assoc()); + return($result = @$this->result->fetch_assoc()); } }