From 332bbcf553dcea656b9a9ee32fadcc07c0f0681a Mon Sep 17 00:00:00 2001 From: Mark Story Date: Mon, 10 May 2010 23:45:47 -0400 Subject: [PATCH] Making null check explicit so falsey default values can be used. Fixes #695 --- cake/console/cake.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/console/cake.php b/cake/console/cake.php index b5942fdd0a7..2af83a1429c 100644 --- a/cake/console/cake.php +++ b/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);