cvs: pear-core(PEAR_1_4) /PEAR/Command Remote.php

From: Date: Thu, 23 Mar 2006 05:45:17 +0000
Subject: cvs: pear-core(PEAR_1_4) /PEAR/Command Remote.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-4644@lists.php.net to get a copy of this message
cellog Thu Mar 23 05:45:17 2006 UTC Modified files: (Branch: PEAR_1_4) /pear-core/PEAR/Command Remote.php Log: fix for list-upgrades did not account for empty param http://cvs.php.net/viewcvs.cgi/pear-core/PEAR/Command/Remote.php?r1=1.90.2.1&r2=1.90.2.2&diff_format=u Index: pear-core/PEAR/Command/Remote.php diff -u pear-core/PEAR/Command/Remote.php:1.90.2.1 pear-core/PEAR/Command/Remote.php:1.90.2.2 --- pear-core/PEAR/Command/Remote.php:1.90.2.1 Thu Mar 23 03:40:58 2006 +++ pear-core/PEAR/Command/Remote.php Thu Mar 23 05:45:17 2006 @@ -17,7 +17,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2006 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Remote.php,v 1.90.2.1 2006/03/23 03:40:58 cellog Exp $ + * @version CVS: $Id: Remote.php,v 1.90.2.2 2006/03/23 05:45:17 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ @@ -532,7 +532,7 @@ function doListUpgrades($command, $options, $params) { require_once 'PEAR/Common.php'; - if (!PEAR_Common::betterStates($params[0])) { + if (isset($params[0]) && !PEAR_Common::betterStates($params[0])) { return $this->raiseError($params[0] . ' is not a valid state (stable/beta/alpha/devel/etc.) try "pear help list-upgrades"'); } $savechannel = $channel = $this->config->get('default_channel');

« previous php.pear.core (#4644) next »