summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-03-10 13:01:09 +0100
committerAndrey Andreev <narf@devilix.net>2016-03-10 13:01:09 +0100
commit7bdd4950da2226859b00042ce9e8b2b9797129a7 (patch)
treec2c2e9506fc40a31f0ea7466f126512dbb07dd57 /system/libraries
parenta027a7fd0d770cec0d71e888d8b6f4aa1568ce9f (diff)
Fix a logical error from last commit
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Session/drivers/Session_database_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Session/drivers/Session_database_driver.php b/system/libraries/Session/drivers/Session_database_driver.php
index da0331220..317bd7d4d 100644
--- a/system/libraries/Session/drivers/Session_database_driver.php
+++ b/system/libraries/Session/drivers/Session_database_driver.php
@@ -163,7 +163,7 @@ class CI_Session_database_driver extends CI_Session_driver implements SessionHan
$this->_db->where('ip_address', $_SERVER['REMOTE_ADDR']);
}
- if ( ! ($result = $this->_db->get()) OR $result->row() === NULL)
+ if ( ! ($result = $this->_db->get()) OR ($result = $result->row()) === NULL)
{
// PHP7 will reuse the same SessionHandler object after
// ID regeneration, so we need to explicitly set this to