[Phphtmllib-devel] SF.net SVN: phphtmllib:[3509] trunk/open2300/lib/modules/api/ AviationWeather.in
Status: Beta
Brought to you by:
hemna
|
From: <he...@us...> - 2010-06-17 22:53:49
|
Revision: 3509
http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3509&view=rev
Author: hemna
Date: 2010-06-17 22:53:43 +0000 (Thu, 17 Jun 2010)
Log Message:
-----------
at
Modified Paths:
--------------
trunk/open2300/lib/modules/api/AviationWeather.inc
Modified: trunk/open2300/lib/modules/api/AviationWeather.inc
===================================================================
--- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-17 22:37:20 UTC (rev 3508)
+++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-17 22:53:43 UTC (rev 3509)
@@ -56,14 +56,13 @@
$cache_key = "METAR_".$icao;
$info = $this->cache->get($cache_key);
- if ($info) {
+ if ($info && false) {
$wxInfo = $info;
return $wxInfo;
}
$wxInfo = array("icao" => strtoupper($icao));
$metar = $this->get_metar($icao, $wxInfo);
-
if ($metar != null && strlen($metar) > 0) {
$this->process_metar($metar, $wxInfo);
$wxInfo["metar"] = $metar;
@@ -467,7 +466,7 @@
$wxInfo['Clouds'] = $cloudCode[$pieces[1]];
// if ($pieces[1] == 'VV') {
$altitude = (integer) 100 * $pieces[2]; // units are feet
- $wxInfo['Clouds'] .= " to $altitude ft";
+ $wxInfo['Clouds'] .= " at $altitude ft";
// }
$metarPtr++;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|