From: Stig Bakken Date: Wed, 29 Jan 2003 21:42:54 +0000 (+0000) Subject: * Windows fix (thanks to paj) X-Git-Tag: RELEASE_0_5~1368 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c5ff649927465a668090c31cd5f94819a1d3419;p=php * Windows fix (thanks to paj) --- diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index a35a023186..36df5f49da 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -451,10 +451,12 @@ class PEAR_Installer extends PEAR_Common function _prependPath($path, $prepend) { - if (OS_WINDOWS && preg_match('/^[a-z]:/i', $path)) { - $path = $prepend . substr($path, 2); - } else { - $path = $prepend . $path; + if (strlen($prepend) > 0) { + if (OS_WINDOWS && preg_match('/^[a-z]:/i', $path)) { + $path = $prepend . substr($path, 2); + } else { + $path = $prepend . $path; + } } return $path; }