Skip to content

Commit

Permalink
Testing option value as a string
Browse files Browse the repository at this point in the history
  • Loading branch information
sime committed Dec 10, 2012
1 parent 80773ad commit 693ca54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Console/ConsoleOptionParser.php
Expand Up @@ -585,7 +585,7 @@ protected function _parseOption($name, $params) {
$option = $this->_options[$name];
$isBoolean = $option->isBoolean();
$nextValue = $this->_nextToken();
$emptyNextValue = (empty($nextValue) && $nextValue != 0);
$emptyNextValue = (empty($nextValue) && $nextValue !== '0');
if (!$isBoolean && !$emptyNextValue && !$this->_optionExists($nextValue)) {
array_shift($this->_tokens);
$value = $nextValue;
Expand Down

0 comments on commit 693ca54

Please sign in to comment.