1
0
Fork 0

Fix PHP warning in the show command when using the -s flag

pull/1060/head
Fabien Potencier 2012-09-03 09:40:03 +02:00
parent a04591bbd7
commit b5897b291d
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ EOT
// show single package or single version // show single package or single version
if ($input->getArgument('package') || !empty($package)) { if ($input->getArgument('package') || !empty($package)) {
$versions = array();
if (empty($package)) { if (empty($package)) {
list($package, $versions) = $this->getPackage($installedRepo, $repos, $input->getArgument('package'), $input->getArgument('version')); list($package, $versions) = $this->getPackage($installedRepo, $repos, $input->getArgument('package'), $input->getArgument('version'));