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