diff options
-rw-r--r-- | pear/PEAR/Common.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index 03bb5c54a0..81f88b6643 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -701,10 +701,7 @@ class PEAR_Common extends PEAR } $tmpdir = System::mkTemp('-d pear'); $this->addTempFile($tmpdir); - if (!is_array($xml)) { - $xml = array($xml); - } - if (!$xml || !$tar->extractList($xml, $tmpdir)) { + if (!$xml || !$tar->extractList(array($xml), $tmpdir)) { return $this->raiseError('could not extract the package.xml file'); } return $this->infoFromDescriptionFile("$tmpdir/$xml"); |