fix: undefined indexes and variables

This commit is contained in:
Martin Ambrus
2017-10-28 02:18:00 +02:00
parent 6f7c70a0d7
commit eca2c9105c
6 changed files with 35 additions and 23 deletions
+1 -1
View File
@@ -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));
}
}