diff options
author | Greg Beaver <cellog@php.net> | 2003-10-04 03:58:00 +0000 |
---|---|---|
committer | Greg Beaver <cellog@php.net> | 2003-10-04 03:58:00 +0000 |
commit | 77c0beb143f525695969273003947e19494b1551 (patch) | |
tree | 2e87d49004a5946d40009fc1955c778bed6baa72 | |
parent | 6a251712855867d317540f8439779f5aa01e32cb (diff) | |
download | php-git-77c0beb143f525695969273003947e19494b1551.tar.gz |
fix warning in rare case (file doesn't exist in package.xml)
-rw-r--r-- | pear/PEAR/Installer.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index 0c5dbd01b5..632d6a4efc 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -504,7 +504,8 @@ class PEAR_Installer extends PEAR_Common $data[3] = dirname($data[3]); } } - if (!count($this->pkginfo['filelist']['dirtree'])) { + if (isset($this->pkginfo['filelist']['dirtree']) + && !count($this->pkginfo['filelist']['dirtree'])) { unset($this->pkginfo['filelist']['dirtree']); } break; |