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

This commit is contained in:
Mark Story 2010-05-10 23:45:47 -04:00
parent 1ec220dac2
commit 91a40a0104

View file

@ -438,7 +438,7 @@ class ShellDispatcher {
$printOptions = '(' . implode('/', $options) . ')';
}
if ($default == null) {
if ($default === null) {
$this->stdout($prompt . " $printOptions \n" . '> ', false);
} else {
$this->stdout($prompt . " $printOptions \n" . "[$default] > ", false);