cvs: pear /Services_Weather/Weather Metar.php

From: Date: Wed, 16 Nov 2005 20:13:16 +0000
Subject: cvs: pear /Services_Weather/Weather Metar.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-36330@lists.php.net to get a copy of this message
eru Wed Nov 16 15:13:16 2005 EDT Modified files: /pear/Services_Weather/Weather Metar.php Log: o Fixed ignoring $useFirst in searchLocation return http://cvs.php.net/diff.php/pear/Services_Weather/Weather/Metar.php?r1=1.83&r2=1.84&ty=u Index: pear/Services_Weather/Weather/Metar.php diff -u pear/Services_Weather/Weather/Metar.php:1.83 pear/Services_Weather/Weather/Metar.php:1.84 --- pear/Services_Weather/Weather/Metar.php:1.83 Wed Nov 16 15:12:01 2005 +++ pear/Services_Weather/Weather/Metar.php Wed Nov 16 15:13:14 2005 @@ -40,7 +40,7 @@ * @author Alexander Wirtz <alex@pc4p.net> * @copyright 2005 Alexander Wirtz * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version CVS: $Id: Metar.php,v 1.83 2005/11/16 20:12:01 eru Exp $ + * @version CVS: $Id: Metar.php,v 1.84 2005/11/16 20:13:14 eru Exp $ * @link http://pear.php.net/package/Services_Weather * @link http://weather.noaa.gov/weather/metar.shtml * @link http://weather.noaa.gov/weather/taf.shtml @@ -1461,7 +1461,7 @@ } } // Only one result? Return as string - if (sizeof($icao) == 1) { + if (sizeof($icao) == 1 || $useFirst) { $icao = key($icao); } } elseif (is_array($location)) {

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