fixed wrong condition

This commit is contained in:
Alexander Makarov
2012-03-07 01:14:04 +04:00
parent 59977e341a
commit b1f9bf5b55

View File

@ -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);
} }
} }