CVS: phpweather data_retrieval.php,1.39,1.40
Brought to you by:
iridium
From: Martin G. <gim...@us...> - 2004-05-10 09:00:37
|
Update of /cvsroot/phpweather/phpweather In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30968 Modified Files: data_retrieval.php Log Message: Fix for bug report #951022 --- no initialization of $metar_time when no METAR is received. Index: data_retrieval.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/data_retrieval.php,v retrieving revision 1.39 retrieving revision 1.40 diff -u -3 -r1.39 -r1.40 --- data_retrieval.php 30 Jan 2004 20:46:36 -0000 1.39 +++ data_retrieval.php 10 May 2004 09:00:26 -0000 1.40 @@ -417,6 +417,8 @@ $metar = $this->metar; } $timestamp = time() - $this->properties['cache_timeout'] + 600; + /* We don't have a METAR, so let's date it way back to 1970. */ + $metar_time = 0; } /* We then cache the METAR in our database */ |