From 1e02071e5888f5f0a88ba39b08bb641406bf62e4 Mon Sep 17 00:00:00 2001 From: Artem Daniliants Date: Thu, 27 May 2010 10:11:57 +0300 Subject: [PATCH] Fixed SQL binding bug --- Server/application/models/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/application/models/user.php b/Server/application/models/user.php index 30723bc..fec78a2 100644 --- a/Server/application/models/user.php +++ b/Server/application/models/user.php @@ -82,7 +82,7 @@ class User_Model extends Model { * @return bool Returns True if user exists and false otherwise */ private function user_exists($username, $email){ - if ($this->db->query("SELECT id FROM users WHERE username=? OR email='?'", + if ($this->db->query("SELECT id FROM users WHERE username='?' OR email='?'", $username, $email)->count()>0) return true; else -- 1.7.9.5