Browse Source

fix for DB/tests/db_error2.phpt

experimental/apache_hooks
Tomas V.V.Cox 25 years ago
parent
commit
2567b428b2
  1. 6
      pear/PEAR.php

6
pear/PEAR.php

@ -377,8 +377,10 @@ class PEAR
}
if ($mode == PEAR_ERROR_TRIGGER && $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'];
}

Loading…
Cancel
Save