cvs: pear-core /scripts pearcmd.php

From: Date: Wed, 04 Mar 2009 20:05:56 +0000
Subject: cvs: pear-core /scripts pearcmd.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-8227@lists.php.net to get a copy of this message
dufuz Wed Mar 4 20:05:56 2009 UTC Modified files: /pear-core/scripts pearcmd.php Log: fix a notice http://cvs.php.net/viewvc.cgi/pear-core/scripts/pearcmd.php?r1=1.40&r2=1.41&diff_format=u Index: pear-core/scripts/pearcmd.php diff -u pear-core/scripts/pearcmd.php:1.40 pear-core/scripts/pearcmd.php:1.41 --- pear-core/scripts/pearcmd.php:1.40 Wed Feb 25 00:06:23 2009 +++ pear-core/scripts/pearcmd.php Wed Mar 4 20:05:56 2009 @@ -12,7 +12,7 @@ * @author Tomas V.V.Cox <cox@idecnet.com> * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: pearcmd.php,v 1.40 2009/02/25 00:06:23 dufuz Exp $ + * @version CVS: $Id: pearcmd.php,v 1.41 2009/03/04 20:05:56 dufuz Exp $ * @link http://pear.php.net/package/PEAR */ @@ -295,7 +295,7 @@ if (strlen($opt) == 1) { $cmdoptions = $cmd->getOptions($command); foreach ($cmdoptions as $o => $d) { - if (@$d['shortopt'] == $opt) { + if (isset($d['shortopt']) && $d['shortopt'] == $opt) { $opts[$o] = $value; } }

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