Browse Source

Merge pull request #1060 from fabpot/fix-show-command-warning

Fix PHP warning in the show command when using the -s flag
Jordi Boggiano 12 years ago
parent
commit
ecda3ea74c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Composer/Command/ShowCommand.php

+ 1 - 0
src/Composer/Command/ShowCommand.php

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