From 91a40a01049769e8818643c97d9028e46f74f175 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 595ed9c3a..a4c89b520 100644 --- a/cake/console/cake.php +++ b/cake/console/cake.php @@ -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);