projects
/
speedfreak
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed SQL binding bug
[speedfreak]
/
Server
/
application
/
models
/
user.php
diff --git
a/Server/application/models/user.php
b/Server/application/models/user.php
index
30723bc
..
fec78a2
100644
(file)
--- 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){
* @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
$username, $email)->count()>0)
return true;
else