summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/libraries/Cache/drivers/Cache_memcached.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/system/libraries/Cache/drivers/Cache_memcached.php b/system/libraries/Cache/drivers/Cache_memcached.php
index 7a3267a1e..02b2d438e 100644
--- a/system/libraries/Cache/drivers/Cache_memcached.php
+++ b/system/libraries/Cache/drivers/Cache_memcached.php
@@ -83,12 +83,9 @@ class CI_Cache_memcached extends CI_Driver {
$CI =& get_instance();
$defaults = $this->_config['default'];
- if ($CI->config->load('memcached', TRUE, TRUE))
+ if ($CI->config->load('memcached', TRUE, TRUE) && is_array($CI->config->config['memcached']))
{
- if (is_array($CI->config->config['memcached']))
- {
- $this->_config = $CI->config->config['memcached'];
- }
+ $this->_config = $CI->config->config['memcached'];
}
if (class_exists('Memcached', FALSE))