mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 21:41:19 +08:00
fixed wrong condition
This commit is contained in:
@ -325,7 +325,7 @@ abstract class Command extends \yii\base\Component
|
||||
} else {
|
||||
echo $message;
|
||||
$input = fgets(STDIN);
|
||||
if($input === false) {
|
||||
if($input !== false) {
|
||||
$input = trim($input);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user