From 5237c3f454294c1db7df3f0a79f980db527edf56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Wed, 10 Jun 2020 23:12:30 +0200 Subject: [PATCH] MAPG-119 prevent endless loop for place selection --- src/Repository/PlaceRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repository/PlaceRepository.php b/src/Repository/PlaceRepository.php index 831d221..2a6b325 100644 --- a/src/Repository/PlaceRepository.php +++ b/src/Repository/PlaceRepository.php @@ -34,7 +34,7 @@ class PlaceRepository $panoId = $this->requestPanoId($place); if ($panoId === null) { - $placesWithoutPano[] = $place['id']; + $placesWithoutPano[] = $exclude[] = $place['id']; } } while ($panoId === null);