Skip to content
Snippets Groups Projects
Commit 50150813 authored by samit.khulve1's avatar samit.khulve1
Browse files

3256091: Warning: array_flip fix

parent 6b50d024
No related branches found
No related tags found
1 merge request!90413256091: Warning: array_flip fix
......@@ -663,7 +663,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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment