summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session/drivers/Session_cookie.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-12-17 09:39:32 +0100
committerAndrey Andreev <narf@bofh.bg>2012-12-17 09:39:32 +0100
commita8e34acb42552b4668b327cc6fcefab5c6d3442b (patch)
treeb8e02dde00e61b001e8a3876046ddc4c57e0e69d /system/libraries/Session/drivers/Session_cookie.php
parentae6346228e4993367a72f272345325f1ddf93110 (diff)
Fix #2074
Diffstat (limited to 'system/libraries/Session/drivers/Session_cookie.php')
-rw-r--r--system/libraries/Session/drivers/Session_cookie.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Session/drivers/Session_cookie.php b/system/libraries/Session/drivers/Session_cookie.php
index 6d926ae3d..9392a4dbe 100644
--- a/system/libraries/Session/drivers/Session_cookie.php
+++ b/system/libraries/Session/drivers/Session_cookie.php
@@ -457,7 +457,7 @@ class CI_Session_cookie extends CI_Session_driver {
}
// No result? Kill it!
- if ($query->num_rows() === 0)
+ if (empty($query) OR $query->num_rows() === 0)
{
$this->sess_destroy();
return FALSE;