Skip to content
Permalink
Browse files

Update lib/Cake/Console/Shell.php

  • Loading branch information...
slimus committed Jan 28, 2012
1 parent 57e4751 commit 7c08e4b0f46c1e05b05797e5ea903aac43f33270
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Console/Shell.php
@@ -453,8 +453,8 @@ public function in($prompt, $options = null, $default = null) {
if (!$this->interactive) {
return $default;
}
$original_options = $options;
$in = $this->_getInput($prompt, $original_options, $default);
$originalOptions = $options;
$in = $this->_getInput($prompt, $originalOptions, $default);
if ($options && is_string($options)) {
if (strpos($options, ',')) {
@@ -472,7 +472,7 @@ public function in($prompt, $options = null, $default = null) {
$options
);
while ($in === '' || !in_array($in, $options)) {
$in = $this->_getInput($prompt, $original_options, $default);
$in = $this->_getInput($prompt, $originalOptions, $default);
}
}
return $in;

0 comments on commit 7c08e4b

Please sign in to comment.
You can’t perform that action at this time.