summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/libraries/Cache/drivers/Cache_redis.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php
index b0315a3ab..0bbd5b05c 100644
--- a/system/libraries/Cache/drivers/Cache_redis.php
+++ b/system/libraries/Cache/drivers/Cache_redis.php
@@ -202,12 +202,12 @@ class CI_Cache_redis extends CI_Driver
{
if ($config['socket_type'] === 'unix')
{
- $v = $this->_redis->connect($config['socket']);
+ $success = $this->_redis->connect($config['socket']);
} else // tcp socket
{
- $v = $this->_redis->connect($config['host'], $config['port'], $config['timeout']);
+ $success = $this->_redis->connect($config['host'], $config['port'], $config['timeout']);
}
- if (!$v)
+ if ( ! $success)
{
log_message('debug','Redis connection refused. Check the config.');
return FALSE;