diff --git a/snapporder/lib/functions.php b/snapporder/lib/functions.php index 72a65a2..04cf001 100644 --- a/snapporder/lib/functions.php +++ b/snapporder/lib/functions.php @@ -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);