summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Long <mchobbylong@gmail.com>2019-03-15 04:38:30 +0100
committerMichael Long <mchobbylong@gmail.com>2019-03-15 04:38:30 +0100
commitd3bdd3c973508ff89e6f6789521f2e2476099cfa (patch)
tree68a0bf0016284bcc24d17ed6dfa5e6ce4ad083c5
parent7f8e0cd333176ee943e0c46eb9fe10d31b70d3ce (diff)
Fix code style
-rw-r--r--system/libraries/Session/drivers/Session_redis_driver.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/libraries/Session/drivers/Session_redis_driver.php b/system/libraries/Session/drivers/Session_redis_driver.php
index c9a98b822..08b299f9c 100644
--- a/system/libraries/Session/drivers/Session_redis_driver.php
+++ b/system/libraries/Session/drivers/Session_redis_driver.php
@@ -389,7 +389,8 @@ class CI_Session_redis_driver extends CI_Session_driver implements SessionHandle
sleep(1);
continue;
}
- elseif ($ttl === -1 && ! $this->_redis->setex($lock_key, 300, time())) {
+ elseif ($ttl === -1 && ! $this->_redis->setex($lock_key, 300, time()))
+ {
log_message('error', 'Session: Error while trying to obtain lock for '.$this->_key_prefix.$session_id);
return FALSE;
}