projects
/
speedfreak
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
41b45c9
)
Fixed again that stupid binding issue
author
Artem Daniliants
<artem@daniliants.com>
Wed, 26 May 2010 13:02:07 +0000
(16:02 +0300)
committer
Artem Daniliants
<artem@daniliants.com>
Wed, 26 May 2010 13:02:07 +0000
(16:02 +0300)
Server/application/models/user.php
patch
|
blob
|
history
diff --git
a/Server/application/models/user.php
b/Server/application/models/user.php
index
0535789
..
30723bc
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
@@
-106,7
+106,7
@@
class User_Model extends Model {
* @return integer|bool User id if successful or false
*/
public function get_id($username){
* @return integer|bool User id if successful or false
*/
public function get_id($username){
- $result = $this->db->query("SELECT id FROM users WHERE username='?'", $username);
+ $result = $this->db->query("SELECT id FROM users WHERE username=?", $username);
if ($result->count()>0)
return $result[0]->id;
else
if ($result->count()>0)
return $result[0]->id;
else