Browse files

fix #5754: Can't set options because "empty" instead of "isset" is used

git-svn-id: http://svn.php.net/repository/pear/packages/System_Command/trunk@199033 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent d0fc24e commit e85dcfd1470b6f307afb6b4e59ef79863552f6e5 Arnaud Limbourg committed Oct 23, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 Command.php
View
2 Command.php
@@ -224,7 +224,7 @@ function setOption($in_option, $in_setting)
$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;
}

0 comments on commit e85dcfd

Please sign in to comment.