1
0
Fork 0

search: fixed output error when no results found.

pull/1073/head
Povilas Balzaravicius Pawka 2012-09-06 09:16:10 +03:00
parent 57d1b5a37d
commit 7154ef9af7
1 changed files with 4 additions and 2 deletions

View File

@ -67,8 +67,10 @@ EOT
$this->output = $output;
$repos->filterPackages(array($this, 'processPackage'), 'Composer\Package\CompletePackage');
foreach ($this->lowMatches as $details) {
$output->writeln($details['name'] . '<comment>:</comment> '. $details['description']);
if (!empty($this->lowMatches)) {
foreach ($this->lowMatches as $details) {
$output->writeln($details['name'] . '<comment>:</comment> '. $details['description']);
}
}
}