From 1246964ac6c967e0f8cdd5a341737c6b91db7eab Mon Sep 17 00:00:00 2001 From: Dale Davies Date: Mon, 18 Jul 2022 14:51:50 +0100 Subject: [PATCH] Fix wrong longitude in weather api --- jumpapp/classes/API/Weather.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jumpapp/classes/API/Weather.php b/jumpapp/classes/API/Weather.php index aa32d54..4e3dbfc 100644 --- a/jumpapp/classes/API/Weather.php +++ b/jumpapp/classes/API/Weather.php @@ -15,7 +15,7 @@ class Weather extends AbstractAPI { // If we have either lat or lon query params then cast them to a float, if not then // set the values to zero. $lat = isset($this->routeparams['lat']) ? (float) $this->routeparams['lat'] : 0; - $lon = isset($this->routeparams['lat']) ? (float) $this->routeparams['lat'] : 0; + $lon = isset($this->routeparams['lon']) ? (float) $this->routeparams['lon'] : 0; // Use the lat and lon values provided unless they are zero, this might mean that // either they werent provided as query params or they couldn't be cast to a float.