diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-03-02 18:34:03 +0100 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-03-02 18:34:03 +0100 |
commit | 7cb8820bcdfdd398b874650cccd3edd552674e5d (patch) | |
tree | a2c5979035399249fd124a57416b3af2f605daf5 /system/libraries | |
parent | 78ca39bc8c4b7edf0468e4a0a7251f808f352414 (diff) | |
parent | 92aeaaa6b56cd02908641b4ee481a0c246874f29 (diff) |
Merge pull request #1106 from timw4mail/develop
Limit db session to select 1 row
Diffstat (limited to 'system/libraries')
-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) |