Skip to content

Commit 1ed059c

Browse files
committed
Add check if the response is array
1 parent 7a6e7f3 commit 1ed059c

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/Cache/Backend

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Cache/Backend/Redis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function load($id, $doNotTestCacheValidity = false)
5252
}
5353

5454
$redisResponse = $redis->exec();
55-
$this->preloadedData = $redisResponse ?
55+
$this->preloadedData = is_array($redisResponse) ?
5656
array_filter(array_combine($this->preloadKeys, $redisResponse)) :
5757
[];
5858
}

0 commit comments

Comments
 (0)