mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: mysqli_num_rows() has only 1 param
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user