]> granicus.if.org Git - php/commitdiff
fix small bug on error reporting (PEAR::raiseError params order)
authorTomas V.V.Cox <cox@php.net>
Thu, 19 Apr 2001 23:56:57 +0000 (23:56 +0000)
committerTomas V.V.Cox <cox@php.net>
Thu, 19 Apr 2001 23:56:57 +0000 (23:56 +0000)
pear/DB.php

index 135349a52af54da8fa44caa3c5e3ce8a0ba8fa77..1c7a6f1d763aa32dde84337015f42eba6c0bb8e6 100644 (file)
@@ -187,8 +187,8 @@ class DB
         $classname = "DB_${type}";
 
         if (!class_exists($classname)) {
-            return PEAR::raiseError(DB_ERROR_NOT_FOUND,
-                                    null, null, null, null, 'DB_Error', true);
+            return PEAR::raiseError(null, DB_ERROR_NOT_FOUND,
+                                    null, null, null, 'DB_Error', true);
         }
 
         @$obj =& new $classname;
@@ -234,8 +234,8 @@ class DB
 
         $classname = "DB_${type}";
         if (!class_exists($classname)) {
-            return PEAR::raiseError(DB_ERROR_NOT_FOUND,
-                                    null, null, null, null, 'DB_Error', true);
+            return PEAR::raiseError(null, DB_ERROR_NOT_FOUND,
+                                    null, null, null, 'DB_Error', true);
         }
 
         @$obj =& new $classname;