summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasterklavi <masterklavi@gmail.com>2016-03-12 07:31:16 +0100
committerMasterklavi <masterklavi@gmail.com>2016-03-12 07:31:16 +0100
commitd03832c6ee27ac1dcf3c5bff3831fcfdd35765f6 (patch)
treeee83fb939896727aa8ea57b4454d678e3c8c2a22
parent2f10aebf8ca7d650ecf7614e8d5e3455c88f96d9 (diff)
Combined two "if" conditions to one
-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))