summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasterklavi <masterklavi@gmail.com>2016-03-12 07:28:57 +0100
committerMasterklavi <masterklavi@gmail.com>2016-03-12 07:28:57 +0100
commit2f10aebf8ca7d650ecf7614e8d5e3455c88f96d9 (patch)
tree04de3b5057abc8e20b161eab0298582317008725
parent4933c16efd7bad7353877910b7d43d0b5a87735e (diff)
Reduction of constructions
-rw-r--r--system/libraries/Cache/drivers/Cache_memcached.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/system/libraries/Cache/drivers/Cache_memcached.php b/system/libraries/Cache/drivers/Cache_memcached.php
index 09dc7b0de..7a3267a1e 100644
--- a/system/libraries/Cache/drivers/Cache_memcached.php
+++ b/system/libraries/Cache/drivers/Cache_memcached.php
@@ -87,12 +87,7 @@ class CI_Cache_memcached extends CI_Driver {
{
if (is_array($CI->config->config['memcached']))
{
- $this->_config = array();
-
- foreach ($CI->config->config['memcached'] as $name => $conf)
- {
- $this->_config[$name] = $conf;
- }
+ $this->_config = $CI->config->config['memcached'];
}
}