mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-06 21:04:20 +00:00
fix: undefined indexes and variables
This commit is contained in:
+1
-1
@@ -98,6 +98,6 @@ class User {
|
||||
// convert result into an array
|
||||
$res = mysqli_fetch_array($res, MYSQLI_NUM);
|
||||
|
||||
return ($res[0] > 0 || $res[1] > 0);
|
||||
return ($res[0] > 0 || (count($res) > 1 && $res[1] > 0));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user