|
|
@@ -456,7 +456,7 @@ class Shell extends Object {
|
|
|
}
|
|
|
}
|
|
|
if (is_array($options)) {
|
|
|
- while ($in === '' || ($in !== '' && (!in_array(strtolower($in), $options) && !in_array(strtoupper($in), $options)) && !in_array($in, $options))) {
|
|
|
+ while ($in === '' || !(in_array(strtolower($in), $options) || in_array(strtoupper($in), $options) || in_array($in, $options))) {
|
|
|
$in = $this->_getInput($prompt, $options, $default);
|
|
|
}
|
|
|
}
|