diff --git a/core/class/weather.class.php b/core/class/weather.class.php index 7eda445..60e82a4 100644 --- a/core/class/weather.class.php +++ b/core/class/weather.class.php @@ -1080,6 +1080,9 @@ public function updateWeatherData() { } for ($i = 1; $i < 4; $i++) { + if(!isset($datas['data']['hour +' . $i])){ + continue; + } $changed = $this->checkAndUpdateCmd('temperature_h' . $i, $datas['data']['hour +' . $i]['temperature']['value']) || $changed; $changed = $this->checkAndUpdateCmd('condition_h' . $i, $datas['data']['hour +' . $i]['description']) || $changed; $changed = $this->checkAndUpdateCmd('condition_id_h' . $i, $datas['data']['hour +' . $i]['summary_id']) || $changed;