Explorar el Código

fix for weather-air pollen bug

removed / in $endpoint
jonchen727 hace 5 años
padre
commit
a254917d2f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      api/functions/homepage-connect-functions.php

+ 1 - 1
api/functions/homepage-connect-functions.php

@@ -133,7 +133,7 @@ function getWeatherAndAir()
 				}
 			}
 			if ($GLOBALS['homepageWeatherAndAirPollenEnabled']) {
-				$endpoint = '/pollen/v2/forecast/daily/?features=plants_information,types_information&days=1&metadata=true';
+				$endpoint = '/pollen/v2/forecast/daily?features=plants_information,types_information&days=1&metadata=true';
 				$response = Requests::get($apiURL . $endpoint . $info, $headers, $options);
 				if ($response->success) {
 					$apiData = json_decode($response->body, true);