commit | a8e34acb42552b4668b327cc6fcefab5c6d3442b | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@bofh.bg> | Mon Dec 17 10:39:32 2012 +0200 |
committer | Andrey Andreev <narf@bofh.bg> | Mon Dec 17 10:39:32 2012 +0200 |
tree | b8e02dde00e61b001e8a3876046ddc4c57e0e69d | |
parent | ae6346228e4993367a72f272345325f1ddf93110 [diff] [blame] |
Fix #2074
diff --git a/system/libraries/Session/drivers/Session_cookie.php b/system/libraries/Session/drivers/Session_cookie.php index 6d926ae..9392a4d 100644 --- a/system/libraries/Session/drivers/Session_cookie.php +++ b/system/libraries/Session/drivers/Session_cookie.php
@@ -457,7 +457,7 @@ } // No result? Kill it! - if ($query->num_rows() === 0) + if (empty($query) OR $query->num_rows() === 0) { $this->sess_destroy(); return FALSE;