From b5c2adf41e7d45f5d00b504b3d9def1556d96c25 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 8 May 2003 17:11:02 +0000 Subject: [PATCH] Silent a notice --- pear/PEAR/Registry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0