X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/e59e6f92628c8aeb6eccefb3c3470984e16ff525..6cb97165422a7e44378c82621a799c011e3a38b1:/Command/WeatherCommand.php?ds=sidebyside diff --git a/Command/WeatherCommand.php b/Command/WeatherCommand.php index 4b3ea40..c2aae61 100644 --- a/Command/WeatherCommand.php +++ b/Command/WeatherCommand.php @@ -343,11 +343,11 @@ class WeatherCommand extends DoctrineCommand { $hour = $type=='daily'?$type:$time->format('H'); //Check data availability - //XXX: should never happen - #if (!isset($data[$zipcode][$dsm][$hour])) { - # //Skip unavailable data - # continue; - #} + //XXX: sometimes startup delay causes weather data to be unavailable for session first hour + if (!isset($data[$zipcode][$dsm][$hour])) { + //Skip unavailable data + continue; + } //Set info alias $info = $data[$zipcode][$dsm][$hour];