Skip to content

Commit

Permalink
prevent warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Sep 19, 2024
1 parent e8c59f0 commit 0db8724
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/class/weather.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0db8724

Please sign in to comment.