Skip to content

Commit

Permalink
Revert multiple fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert.ahmerov committed Aug 24, 2017
1 parent 0b9182e commit f1c14af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ApcuCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit f1c14af

Please sign in to comment.