[curweather] CR request:

- removed stray space
This commit is contained in:
Roland Häder 2018-07-25 02:14:43 +02:00
parent 00d957dfdc
commit 902862fbc8
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View file

@ -71,7 +71,7 @@ function getWeather($loc, $units = 'metric', $lang = 'en', $appid = '', $cacheti
$wunit = 'mph';
}
if (trim((string) $res->weather['value']) == trim((string) $res->clouds['name']) ) {
if (trim((string) $res->weather['value']) == trim((string) $res->clouds['name'])) {
$desc = (string) $res->clouds['name'];
} else {
$desc = (string) $res->weather['value'] . ', ' . (string) $res->clouds['name'];