Skip to content

Commit

Permalink
Fixes Command::in not looping. See http://dev.lithify.me/lithium/tick…
Browse files Browse the repository at this point in the history
  • Loading branch information
masom committed Jun 6, 2011
1 parent 800d67c commit f32a0a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/lithium/console/Command.php
Expand Up @@ -200,8 +200,8 @@ public function in($prompt = null, $options = array()) {
do { do {
$result = trim($this->request->input()); $result = trim($this->request->input());
} while ( } while (
$result == null && !empty($options['quit']) && $result != $options['quit'] !empty($options['quit']) && $result != $options['quit']
&& !empty($options['options']) && array_search($result, $options['options']) && !empty($options['choices']) && !in_array($result, $options['choices'], true)
); );


if ($options['default'] != null && empty($result)) { if ($options['default'] != null && empty($result)) {
Expand Down Expand Up @@ -357,4 +357,4 @@ protected function _response($type, $string, $options) {
} }
} }


?> ?>

0 comments on commit f32a0a4

Please sign in to comment.