Skip to content
Permalink
Browse files

Making null check explicit so falsey default values can be used. Fixes

  • Loading branch information...
markstory committed May 11, 2010
1 parent 501a237 commit 332bbcf553dcea656b9a9ee32fadcc07c0f0681a
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/console/cake.php
@@ -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);

0 comments on commit 332bbcf

Please sign in to comment.
You can’t perform that action at this time.