Browse Source

added check for default value

tags/2.0.0-beta
Alexander Makarov 13 years ago
parent
commit
dd091c2ff3
  1. 2
      framework/console/Command.php

2
framework/console/Command.php

@ -331,7 +331,7 @@ abstract class Command extends \yii\base\Component
}
else {
$input = trim($input);
return $input==='' ? $default : $input;
return ($input==='' && $default!==null) ? $default : $input;
}
}

Loading…
Cancel
Save