From 422031e2a936037d5822df364253fabe7146b221 Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Sat, 7 Jun 2014 23:13:44 +0200 Subject: [PATCH] Oops --- snapporder/lib/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);