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;