From 08abff97d16c306d10db4d4e2774db2802edb1b2 Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Sat, 25 Nov 2017 09:24:56 +0100 Subject: [PATCH] fix: mysqli_fetch_all() only available with native mysqlnd driver --- GameEngine/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Database.php b/GameEngine/Database.php index c3041e3f..60388316 100755 --- a/GameEngine/Database.php +++ b/GameEngine/Database.php @@ -4530,7 +4530,7 @@ References: User ID/Message ID, Mode LEFT JOIN '.TB_PREFIX.'users u ON u.id = v.owner WHERE d.vref = '.$wid; - $res = mysqli_fetch_all(mysqli_query($this->dblink, $q), MYSQLI_ASSOC); + $res = mysqli_fetch_array(mysqli_query($this->dblink, $q), MYSQLI_ASSOC); foreach ($res as $key) { // if this building being demolished is an Embassy or was demolished completely // and the player is in an alliance, check and update their alliance status