From 9e1909643c63375dfb9e81528e41024fc4cfb114 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 26 Aug 2020 17:15:11 +0200 Subject: [PATCH] PlaceLookup should return results in input order --- lib/PlaceLookup.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/PlaceLookup.php b/lib/PlaceLookup.php index eebfe983..0a285a6a 100644 --- a/lib/PlaceLookup.php +++ b/lib/PlaceLookup.php @@ -452,11 +452,13 @@ class PlaceLookup $aPlace, $aPlace['country_code'] ); + + $aResults[$aPlace['place_id']] = $aPlace; } - Debug::printVar('Places', $aPlaces); + Debug::printVar('Places', $aResults); - return $aPlaces; + return $aResults; } /* returns an array which will contain the keys -- 2.39.5