cvs: pear /Services_Weather/Weather Metar.php

From: Date: Sat, 10 Jul 2004 11:45:12 +0000
Subject: cvs: pear /Services_Weather/Weather Metar.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-21707@lists.php.net to get a copy of this message
eru Sat Jul 10 07:45:12 2004 EDT Modified files: /pear/Services_Weather/Weather Metar.php Log: o Fixed probability still being set http://cvs.php.net/diff.php/pear/Services_Weather/Weather/Metar.php?r1=1.63&r2=1.64&ty=u Index: pear/Services_Weather/Weather/Metar.php diff -u pear/Services_Weather/Weather/Metar.php:1.63 pear/Services_Weather/Weather/Metar.php:1.64 --- pear/Services_Weather/Weather/Metar.php:1.63 Sat Jul 10 07:12:44 2004 +++ pear/Services_Weather/Weather/Metar.php Sat Jul 10 07:45:12 2004 @@ -16,7 +16,7 @@ // | Authors: Alexander Wirtz <alex@pc4p.net> | // +----------------------------------------------------------------------+ // -// $Id: Metar.php,v 1.63 2004/07/10 11:12:44 eru Exp $ +// $Id: Metar.php,v 1.64 2004/07/10 11:45:12 eru Exp $ /** * @package Services_Weather @@ -1039,11 +1039,15 @@ // As we have just extracted the probability for the next FMC // increase field-counter $i++; + } elseif (isset($probability)) { + unset($probability); } } else { $type = $result[1]; if (isset($result[2]) && is_numeric($result[2])) { $probability = $result[2]; + } elseif (isset($probability)) { + unset($probability); } } if (preg_match("/^(\d{2})(\d{2})$/i", $taf[$i + 1], $lresult)) {

« previous php.pear.cvs (#21707) next »