Skip to content

Commit

Permalink
Use PHP properly.
Browse files Browse the repository at this point in the history
Refs #11845
  • Loading branch information
markstory committed Mar 19, 2018
1 parent d4515b4 commit d6f026a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cache/Engine/MemcachedEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ public function groups()
}
}

$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])) {
Expand Down

0 comments on commit d6f026a

Please sign in to comment.