Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit e85dcfd1470b6f307afb6b4e59ef79863552f6e5 1 parent d0fc24e
Arnaud Limbourg authored
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.