[Phphtmllib-devel] SF.net SVN: phphtmllib:[3193] trunk/open2300/lib/modules/home/widgets/ MetarText
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2008-11-07 19:48:36
|
Revision: 3193 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3193&view=rev Author: hemna Date: 2008-11-07 19:48:32 +0000 (Fri, 07 Nov 2008) Log Message: ----------- force North or 0 degrees to be 360 Modified Paths: -------------- trunk/open2300/lib/modules/home/widgets/MetarTextCurrentConditions.inc Modified: trunk/open2300/lib/modules/home/widgets/MetarTextCurrentConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/MetarTextCurrentConditions.inc 2008-11-07 19:46:40 UTC (rev 3192) +++ trunk/open2300/lib/modules/home/widgets/MetarTextCurrentConditions.inc 2008-11-07 19:48:32 UTC (rev 3193) @@ -60,6 +60,9 @@ //now do wind $wind_dir = $this->wx->get_wind_direction(); $wind_angle = $this->wx->get_wind_angle(); + if ($wind_angle == 0) { + $wind_angle = 360; + } $speed = round($this->wx->get_wind_speed(),0); $wind_speed = WXConversion::mph_to_knots($speed,"%02.0fKT "); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |