diff options
author | Jonty Sewell <jontysewell@gmail.com> | 2016-02-05 13:34:01 +0100 |
---|---|---|
committer | Jonty Sewell <jontysewell@gmail.com> | 2016-02-05 13:34:01 +0100 |
commit | c07ae0888377fb434ce70d0817746962722ea3b1 (patch) | |
tree | b719dc037b1289bc667e90b28fa622284a8c345a /system/libraries | |
parent | 0f19fd0550e95354e8512c28ff19799aa913c0f9 (diff) |
Fix regression on PHP7 when regenerating the session (#4362)
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Session/drivers/Session_redis_driver.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/system/libraries/Session/drivers/Session_redis_driver.php b/system/libraries/Session/drivers/Session_redis_driver.php index c4483e439..dc4328644 100644 --- a/system/libraries/Session/drivers/Session_redis_driver.php +++ b/system/libraries/Session/drivers/Session_redis_driver.php @@ -198,7 +198,9 @@ class CI_Session_redis_driver extends CI_Session_driver implements SessionHandle $session_data = $this->_redis->get($this->_key_prefix.$session_id); - is_string($session_data) && $this->_key_exists = TRUE; + is_string($session_data) + ? $this->_key_exists = TRUE + : $session_data = ''; $this->_fingerprint = md5($session_data); return $session_data; |