summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorMasterklavi <masterklavi@gmail.com>2016-03-12 07:38:47 +0100
committerMasterklavi <masterklavi@gmail.com>2016-03-12 07:38:47 +0100
commit35d9f36538be2acc86beb060fb54d93f268cf307 (patch)
tree465984d009e5a5e5792c023e4311998640227d97 /system
parentdb91d5b1b3ed2cfd8e1ad0ba59906ad527ef8786 (diff)
Added a second check "instanceof"
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Cache/drivers/Cache_memcached.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Cache/drivers/Cache_memcached.php b/system/libraries/Cache/drivers/Cache_memcached.php
index ae90b9858..c22a36f4c 100644
--- a/system/libraries/Cache/drivers/Cache_memcached.php
+++ b/system/libraries/Cache/drivers/Cache_memcached.php
@@ -125,7 +125,7 @@ class CI_Cache_memcached extends CI_Driver {
$cache_server['weight']
);
}
- else
+ elseif ($this->_memcached instanceof Memcached)
{
$this->_memcached->addServer(
$cache_server['hostname'],