From c262fba3180ceb716b4abc16d019b69311b5e8e3 Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Sat, 21 Oct 2017 11:26:37 +0200 Subject: [PATCH] fix: mysqli_num_rows() has only 1 param --- GameEngine/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Database.php b/GameEngine/Database.php index e5fa216a..d055cdf5 100755 --- a/GameEngine/Database.php +++ b/GameEngine/Database.php @@ -1678,7 +1678,7 @@ class MYSQLi_DB { list($aid) = $this->escape_input((int) $aid); $result = mysqli_query($this->dblink,"SELECT * FROM " . TB_PREFIX . "users where alliance = $aid"); - $num_rows = mysqli_num_rows($this->dblink, $result); + $num_rows = mysqli_num_rows($result); if($num_rows == 0) { $q = "DELETE FROM " . TB_PREFIX . "alidata WHERE id = $aid"; }