From ffa3a595916b4936f7459fbc0e69e5b83235818e Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Sat, 10 Oct 2015 00:37:46 +0300 Subject: [PATCH] Compare with empty string instead of comparing length with 0 --- framework/helpers/BaseConsole.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/helpers/BaseConsole.php b/framework/helpers/BaseConsole.php index cfc75c7..84a2c22 100644 --- a/framework/helpers/BaseConsole.php +++ b/framework/helpers/BaseConsole.php @@ -781,7 +781,7 @@ class BaseConsole ? static::input("$text [" . $options['default'] . '] ') : static::input("$text "); - if (!strlen($input)) { + if ($input === '') { if (isset($options['default'])) { $input = $options['default']; } elseif ($options['required']) {