From cf080fb73f18ac79b618fc4a864d869c49814033 Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Thu, 19 Apr 2001 23:56:57 +0000 Subject: [PATCH] fix small bug on error reporting (PEAR::raiseError params order) --- pear/DB.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pear/DB.php b/pear/DB.php index 135349a52a..1c7a6f1d76 100644 --- a/pear/DB.php +++ b/pear/DB.php @@ -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; -- 2.50.1