diff --git a/src/ApcuCache.php b/src/ApcuCache.php index b5f0048..dbb3794 100644 --- a/src/ApcuCache.php +++ b/src/ApcuCache.php @@ -78,9 +78,9 @@ public function getMultiple($keys, $default = null) $this->assertKeyNames($keys); $keys = $this->buildKeyNames($keys); - $result = apcu_fetch($keys, $success); + $result = apcu_fetch($keys); - if ($success && !is_null($default) && is_array($result) && count($keys) > count($result)) { + if (!is_null($default) && is_array($result) && count($keys) > count($result)) { $notFoundKeys = array_diff($keys, array_keys($result)); $result = array_merge($result, array_fill_keys($notFoundKeys, $default)); }