Commit dd091c2f by Alexander Makarov

added check for default value

parent 434d31dd
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment