Oops
This commit is contained in:
1 parent
12a227fc6f
commit
422031e2a9
1 file changed
+1
-1
@@ -91,7 +91,7 @@ function get_user($user_id) {
|
||||
echo json_encode( array('error' => 'db_error', 'error_message' => $res->toString() ) );
|
||||
die();
|
||||
}
|
||||
if($res->numRows === 0) {
|
||||
if($res->numRows() === 0) {
|
||||
return false;
|
||||
}
|
||||
$res->fetchInto($user);
|
||||
|
||||
Reference in new issue
Block a user