summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas V.V.Cox <cox@php.net>2003-08-05 15:35:17 +0000
committerTomas V.V.Cox <cox@php.net>2003-08-05 15:35:17 +0000
commitdececbdb4cbbec447843a691d402b03e8c7d11a5 (patch)
tree10997b389d33c5aa5c4faf5c330124d6f8e263fc
parent6c93b3016528b9a7a58e8af94aa8ce6d271634f1 (diff)
downloadphp-git-dececbdb4cbbec447843a691d402b03e8c7d11a5.tar.gz
Other fix to ws in path names fix
-rw-r--r--pear/PEAR/Common.php5
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");