diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-07-12 01:34:51 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-07-12 01:36:42 +0200 |
commit | faef9c8dd3bbd9403881982f57bee4342d5c39e3 (patch) | |
tree | ba5d728b6070f343f09a288ef579822c0b7c55df /application/models/muser.php | |
parent | 221b58a8d91e779e4be184257da857c36a0b87e3 (diff) |
Explicitly select fields in db queries
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models/muser.php')
-rw-r--r-- | application/models/muser.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/models/muser.php b/application/models/muser.php index d123c8701..8ec4de4c5 100644 --- a/application/models/muser.php +++ b/application/models/muser.php @@ -17,7 +17,7 @@ class Muser extends CI_Model { function login($username, $password) { $query = $this->db->query(' - SELECT * + SELECT username, id, password FROM `users` WHERE `username` = ? ', array($username))->row_array(); |