1
0
Fork 0

Merge remote-tracking branch 'kayladnls/kayla'

pull/3320/head
Jordi Boggiano 2014-10-07 15:40:33 +01:00
commit d4062a5594
1 changed files with 3 additions and 3 deletions

View File

@ -344,9 +344,9 @@ EOT
$exactMatch = null;
$choices = array();
foreach ($matches as $position => $package) {
$choices[] = sprintf(' <info>%5s</info> %s', "[$position]", $package['name']);
if ($package['name'] === $package) {
foreach ($matches as $position => $foundPackage) {
$choices[] = sprintf(' <info>%5s</info> %s', "[$position]", $foundPackage['name']);
if ($foundPackage['name'] === $package) {
$exactMatch = true;
break;
}