summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache/drivers
diff options
context:
space:
mode:
authorKakysha <ezhikvdele@gmail.com>2013-10-28 18:30:05 +0100
committerKakysha <ezhikvdele@gmail.com>2013-10-28 18:30:05 +0100
commitffe2130b00bffb2f43debf82c34586642c831b0b (patch)
treee984e2c182e2ed68a56a82a64aa8f205db7a59b3 /system/libraries/Cache/drivers
parent2d14673d1a513a372a5921775aa3987f8444477e (diff)
some code rewrite
Diffstat (limited to 'system/libraries/Cache/drivers')
-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;