cvs: php4 /pear PEAR.php

From: Date: Fri, 31 Aug 2001 17:56:44 +0000
Subject: cvs: php4 /pear PEAR.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-707@lists.php.net to get a copy of this message
cox Fri Aug 31 13:56:44 2001 EDT Modified files: /php4/pear PEAR.php Log: fix problem when mixing different error modes under certain circumstances (pear/test/pear_error3.phpt) Index: php4/pear/PEAR.php diff -u php4/pear/PEAR.php:1.18 php4/pear/PEAR.php:1.19 --- php4/pear/PEAR.php:1.18 Fri Aug 31 12:12:33 2001 +++ php4/pear/PEAR.php Fri Aug 31 13:56:44 2001 @@ -17,7 +17,7 @@ // | Stig Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: PEAR.php,v 1.18 2001/08/31 16:12:33 cox Exp $ +// $Id: PEAR.php,v 1.19 2001/08/31 17:56:44 cox Exp $ // define('PEAR_ERROR_RETURN', 1); @@ -397,8 +397,10 @@ } } else { if ($options === null) { - if (isset($this) && isset($this->_default_error_options)) { - $options = $this->_default_error_options; + if (isset($this)) { + if (isset($this->_default_error_options)) { + $options = $this->_default_error_options; + } } else { $options = $GLOBALS['_PEAR_default_error_options']; }

« previous php.pear.cvs (#707) next »