From: Stig Bakken Date: Thu, 19 Apr 2001 12:31:20 +0000 (+0000) Subject: * cotcha, Tomas X-Git-Tag: php-4.0.6RC1~368 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2966cc538bf90eb3a13007f11baad557c4adac61;p=php * cotcha, Tomas --- diff --git a/pear/PEAR.php.in b/pear/PEAR.php.in index b2556bc329..ee5ccea9b1 100644 --- a/pear/PEAR.php.in +++ b/pear/PEAR.php.in @@ -303,7 +303,7 @@ class PEAR } if ($error_class !== null) { $ec = $error_class; - } elseif (isset($this)) { + } elseif (isset($this) && isset($this->_error_class)) { $ec = $this->_error_class; } else { $ec = 'PEAR_Error';