diff options
author | Timothy Warren <tim@timshomepage.net> | 2012-03-02 17:51:42 +0100 |
---|---|---|
committer | Timothy Warren <tim@timshomepage.net> | 2012-03-02 17:51:42 +0100 |
commit | f142192a97033c4f8d398212443bc4776bd2ca98 (patch) | |
tree | fc13685c5a278e022af7490382d13ebe7d64473a /system | |
parent | b1a412601ae0fc01a45f159d220ecdcb244c8fac (diff) |
Limit db session select to single row
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Session.php b/system/libraries/Session.php index 66b39a6a2..dd50a91e1 100644 --- a/system/libraries/Session.php +++ b/system/libraries/Session.php @@ -219,7 +219,7 @@ class CI_Session { $this->CI->db->where('user_agent', $session['user_agent']); } - $query = $this->CI->db->get($this->sess_table_name); + $query = $this->CI->db->limit(1)->get($this->sess_table_name); // No result? Kill it! if ($query->num_rows() === 0) |