Update of /cvsroot/phpweather/phpweather-1.x
In directory usw-pr-cvs1:/tmp/cvs-serv22957
Modified Files:
phpweather.inc
Log Message:
Ups! We've been lucky that most METARs fit on a single line...
Index: phpweather.inc
===================================================================
RCS file: /cvsroot/phpweather/phpweather-1.x/phpweather.inc,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- phpweather.inc 8 Aug 2002 17:46:04 -0000 1.9
+++ phpweather.inc 11 Aug 2002 11:38:58 -0000 1.10
@@ -492,7 +492,7 @@
$date = trim($file[0]);
$metar = trim($file[1]);
for ($i = 2; $i < count($file); $i++) {
- $metar .= ' ' . trim($file[i]);
+ $metar .= ' ' . trim($file[$i]);
}
/* The date is in the form 2000/10/09 14:50 UTC. This seperates
|