From 89d60c4b12424a40e6231cc72b46f6825d3f2190 Mon Sep 17 00:00:00 2001 From: Boris Date: Tue, 15 Nov 2022 17:04:50 +0100 Subject: [PATCH] La fucking biourotique once again --- lib/Gchange.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Gchange.class.php b/lib/Gchange.class.php index a92eb03..cd9513e 100644 --- a/lib/Gchange.class.php +++ b/lib/Gchange.class.php @@ -196,7 +196,7 @@ class Gchange { return $this->getNearbyPlaces($user->getLat(), $user->getLon(), $radius, null, $maxPlacesNb); } - public function getNearbyPlaces ($lat, $lon, $maxDistance, $minDistance = NULL, $maxPlacesNb) { + public function getNearbyPlaces ($lat, $lon, $maxDistance, $minDistance = NULL, $maxPlacesNb = 15) { $placesCacheDir = 'places-nearby/geopoint/' . $maxDistance . 'km/'; $placesCacheFile = $lat . ',' . $lon . '.json'; @@ -321,7 +321,7 @@ class Gchange { $result->hits->hits = array(); $rHitsNb = count($r->hits->hits); - + for ($i = 0; $i < $rHitsNb; $i++) { $result->hits->hits[$i] = new stdClass;