]> granicus.if.org Git - php/commitdiff
fix for DB/tests/db_error2.phpt
authorTomas V.V.Cox <cox@php.net>
Fri, 31 Aug 2001 19:13:24 +0000 (19:13 +0000)
committerTomas V.V.Cox <cox@php.net>
Fri, 31 Aug 2001 19:13:24 +0000 (19:13 +0000)
pear/PEAR.php

index c30337463461fdec132bf53e09d86f33e946d4a5..0c6b0f537af947798dd6c2904f61401806960e8c 100644 (file)
@@ -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'];
             }