We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29fcb2b commit 7ef4aadCopy full SHA for 7ef4aad
core/Cache/WatermarkedPeer.class.php
@@ -114,11 +114,16 @@ public function getList($indexes)
114
foreach ($indexes as $index)
115
$peerIndexMap[$this->getActualWatermark().$index] = $index;
116
117
- $peerResult = $this->peer->getList(array_keys($peerIndexMap));
+ $peerIndexes = array_keys($peerIndexMap);
118
+ $peerResult = $this->peer->getList($peerIndexes);
119
120
$result = array();
- foreach ($peerResult as $key => $value) {
121
- $result[$peerIndexMap[$key]] = $value;
+ if (!empty($peerResult)) {
122
+ foreach ($peerResult as $key => $value) {
123
+ $result[$peerIndexMap[$key]] = $value;
124
+ }
125
+ } else {
126
+ $result = $peerResult;
127
}
128
129
return $result;
0 commit comments