Browse Source

Use PHP properly.

Refs #11845
mark_story 8 years ago
parent
commit
d6f026ab8c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Cache/Engine/MemcachedEngine.php

+ 1 - 1
src/Cache/Engine/MemcachedEngine.php

@@ -500,7 +500,7 @@ class MemcachedEngine extends CacheEngine
             }
         }
 
-        $groups = (array)$this->_Memcached->getMulti($this->_compiledGroupNames);
+        $groups = $this->_Memcached->getMulti($this->_compiledGroupNames) ?: [];
         if (count($groups) !== count($this->_config['groups'])) {
             foreach ($this->_compiledGroupNames as $group) {
                 if (!isset($groups[$group])) {