diff --git a/jumpapp/classes/API/Weather.php b/jumpapp/classes/API/Weather.php index 315b03b..99995b5 100644 --- a/jumpapp/classes/API/Weather.php +++ b/jumpapp/classes/API/Weather.php @@ -39,8 +39,8 @@ class Weather extends AbstractAPI { // This is the API endpoint and params we are using for the query, $url = $owmapiurlbase .'?units=' . $units - .'&lat=' . $latlong[0] - .'&lon=' . $latlong[1] + .'&lat=' . trim($latlong[0]) + .'&lon=' . trim($latlong[1]) .'&appid=' . $this->config->get('owmapikey', false); // Use the cache to store/retrieve data, make an md5 hash of latlong so it is not possible