From: Pierre Joye Date: Thu, 8 May 2003 17:11:02 +0000 (+0000) Subject: Silent a notice X-Git-Tag: RELEASE_0_9b~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5c2adf41e7d45f5d00b504b3d9def1556d96c25;p=php Silent a notice --- diff --git a/pear/PEAR/Registry.php b/pear/PEAR/Registry.php index 5f304ab23d..68a33b36e7 100644 --- a/pear/PEAR/Registry.php +++ b/pear/PEAR/Registry.php @@ -485,7 +485,7 @@ class PEAR_Registry extends PEAR } $pkgs = array(); foreach ($path as $name => $attrs) { - if (isset($attrs['baseinstalldir'])) { + if (is_array($attrs) && isset($attrs['baseinstalldir'])) { $name = $attrs['baseinstalldir'].DIRECTORY_SEPARATOR.$name; } $pkgs[$name] = $this->checkFileMap($name);