summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/application/libraries/MemcacheLibrary.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/application/libraries/MemcacheLibrary.php b/system/application/libraries/MemcacheLibrary.php
index 046a6f599..367c85078 100644
--- a/system/application/libraries/MemcacheLibrary.php
+++ b/system/application/libraries/MemcacheLibrary.php
@@ -62,7 +62,7 @@ class MemcacheLibrary {
$this->CI->config->load("memcache");
/* connect to default server */
- if($this->CI->config->item("MEMCACHE_HOST") && $this->CI->config->item("MEMCACHE_PORT")) {
+ if($this->CI->config->item("MEMCACHE_HOST") && $this->CI->config->item("MEMCACHE_PORT") !== false) {
$this->addServer($this->CI->config->item("MEMCACHE_HOST"), $this->CI->config->item("MEMCACHE_PORT"));
}