Permalink
Browse files

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

  • Loading branch information...
1 parent 1ec220d commit 91a40a01049769e8818643c97d9028e46f74f175 @markstory markstory committed May 11, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/console/cake.php
View
@@ -438,7 +438,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 91a40a0

Please sign in to comment.