From b1f9bf5b55869f1de34ac5feee0dffae25b2326e Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 7 Mar 2012 01:14:04 +0400 Subject: [PATCH] fixed wrong condition --- framework/console/Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/console/Command.php b/framework/console/Command.php index a3c41bc..16ba810 100644 --- a/framework/console/Command.php +++ b/framework/console/Command.php @@ -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); } }