Skip to content
Snippets Groups Projects

3256091: Warning: array_flip fix

Open Samit Khulve requested to merge issue/drupal-3256091:3256091-warning-arrayflip-can into 11.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -664,7 +664,7 @@ public function loadMultipleRevisions(array $revision_ids) {
// Ensure that the returned array is ordered the same as the original
// $ids array if this was passed in and remove any invalid IDs.
if ($revision_ids) {
if (!empty($revision_ids)) {
$flipped_ids = array_intersect_key(array_flip($revision_ids), $revisions);
$revisions = array_replace($flipped_ids, $revisions);
}
Loading