From 36bfb2b8f7c6682df3d82df43032d264c1fb2d57 Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Sat, 4 Nov 2017 10:32:30 +0100 Subject: [PATCH] fix: alliance deletion check --- GameEngine/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Database.php b/GameEngine/Database.php index 691aa37e..9fdfeb52 100755 --- a/GameEngine/Database.php +++ b/GameEngine/Database.php @@ -1825,7 +1825,7 @@ class MYSQLi_DB implements IDbConnection { function deleteAlliance($aid) { list($aid) = $this->escape_input((int) $aid); - $result = mysqli_fetch_array(mysqli_query($this->dblink,"SELECT Count(*) as Total FROM " . TB_PREFIX . "users where alliance = $aid", MYSQLI_ASSOC)); + $result = mysqli_fetch_array(mysqli_query($this->dblink,"SELECT Count(*) as Total FROM " . TB_PREFIX . "users where alliance = $aid"), MYSQLI_ASSOC); if ($result['Total'] == 0) { // remove the alliance $q = "DELETE FROM " . TB_PREFIX . "alidata WHERE id = $aid";