Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Making null check explicit so falsey default values can be used. Fixes
  • Loading branch information
markstory committed May 11, 2010
1 parent 501a237 commit 332bbcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/console/cake.php
Expand Up @@ -392,7 +392,7 @@ function getInput($prompt, $options = null, $default = null) {
$printOptions = '(' . implode('/', $options) . ')';
}

if ($default == null) {
if ($default === null) {
$this->stdout($prompt . " $printOptions \n" . '> ', false);
} else {
$this->stdout($prompt . " $printOptions \n" . "[$default] > ", false);
Expand Down

0 comments on commit 332bbcf

Please sign in to comment.