From: Greg Beaver Date: Fri, 30 Apr 2004 02:05:47 +0000 (+0000) Subject: MFH fix 1186: notice in PEAR_Common undeclared $_packageName X-Git-Tag: php-4.3.7RC1~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f7829fb478eb8e5664c1384ec413b66388ed706;p=php MFH fix 1186: notice in PEAR_Common undeclared $_packageName --- diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index 3329fc6b6e..6e11a0d027 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -1235,7 +1235,10 @@ class PEAR_Common extends PEAR function buildProvidesArray($srcinfo) { $file = basename($srcinfo['source_file']); - $pn = $this->_packageName; + $pn = ''; + if (isset($this->_packageName)) { + $pn = $this->_packageName; + } $pnl = strlen($pn); foreach ($srcinfo['declared_classes'] as $class) { $key = "class;$class";