Browse Source

Compare with empty string instead of comparing length with 0

9899-cache-bug
Alexander Makarov 9 years ago
parent
commit
ffa3a59591
  1. 2
      framework/helpers/BaseConsole.php

2
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']) {

Loading…
Cancel
Save