cvs: pear /System_Command Command.php

From: Date: Sun, 23 Oct 2005 10:36:33 +0000
Subject: cvs: pear /System_Command Command.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35801@lists.php.net to get a copy of this message
arnaud Sun Oct 23 06:36:33 2005 EDT Modified files: /pear/System_Command Command.php Log: fix #5754: Can't set options because "empty" instead of "isset" is used http://cvs.php.net/diff.php/pear/System_Command/Command.php?r1=1.5&r2=1.6&ty=u Index: pear/System_Command/Command.php diff -u pear/System_Command/Command.php:1.5 pear/System_Command/Command.php:1.6 --- pear/System_Command/Command.php:1.5 Thu Sep 1 08:51:08 2005 +++ pear/System_Command/Command.php Sun Oct 23 06:36:31 2005 @@ -18,7 +18,7 @@ // | Author: Dan Allen <dan@mojavelinux.com> // +----------------------------------------------------------------------+ -// $Id: Command.php,v 1.5 2005/09/01 12:51:08 arnaud Exp $ +// $Id: Command.php,v 1.6 2005/10/23 10:36:31 arnaud Exp $ // }}} // {{{ includes @@ -54,7 +54,7 @@ * * @author Anders Johannsen <anders@johannsen.com> * @author Dan Allen <dan@mojavelinux.com> - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ */ // }}} @@ -224,7 +224,7 @@ $option = strtoupper($in_option); - if (empty($this->options[$option])) { + if (!isset($this->options[$option])) { PEAR::raiseError(null, SYSTEM_COMMAND_ERROR, null, E_USER_NOTICE, null, 'System_Command_Error', true); return false; }

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