logo       
Google Custom Search
    AddThis Social Bookmark Button

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

Subject: cvs: pear-core(PEAR_1_4) /PEAR/Command Remote.php
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@xxxxxxx>
  * @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');

-- 
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>