diff options
| author | Stig Bakken <ssb@php.net> | 2003-01-29 21:42:54 +0000 |
|---|---|---|
| committer | Stig Bakken <ssb@php.net> | 2003-01-29 21:42:54 +0000 |
| commit | 9c5ff649927465a668090c31cd5f94819a1d3419 (patch) | |
| tree | 5479813a887f9000252e39e252ed2c6124df229a | |
| parent | ebf13bc9405ee78ceb428fe7b9d47d29e68f44c4 (diff) | |
| download | php-git-9c5ff649927465a668090c31cd5f94819a1d3419.tar.gz | |
* Windows fix (thanks to paj)
| -rw-r--r-- | pear/PEAR/Installer.php | 10 |
1 files changed, 6 insertions, 4 deletions
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; } |
