diff --git a/curweather/curweather.php b/curweather/curweather.php index 6d7edc06..e431491a 100644 --- a/curweather/curweather.php +++ b/curweather/curweather.php @@ -2,7 +2,7 @@ /** * Name: Current Weather * Description: Shows current weather conditions for user's location on their network page. - * Version: 1.1 + * Version: 1.2 * Author: Tony Baldwin * Author: Fabio Comuni * Author: Tobias Diekershoff @@ -62,7 +62,7 @@ function getWeather($loc, $units = 'metric', $lang = 'en', $appid = '', $cacheti unset($_SESSION['curweather_notice_shown']); - if ((string) $res->temperature['unit'] === 'metric') { + if (in_array((string) $res->temperature['unit'], ['celsius', 'metric'])) { $tunit = '°C'; $wunit = 'm/s'; } else {