Skip to content

Commit

Permalink
replace complete PEAR error
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Girard committed Apr 15, 2008
1 parent 2d7c922 commit 3a6e0a1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions PHP-server-1.1/src/DB.php
Expand Up @@ -961,13 +961,13 @@ class DB_Error extends PEAR_Error
function DB_Error($code = DB_ERROR, $mode = PEAR_ERROR_RETURN,
$level = E_USER_ERROR, $debuginfo = null)
{
// if (is_int($code)) {
// $this->PEAR_Error('DB Error: ' . DB::errorMessage($code), $code,
// $mode, $level, $debuginfo);
// } else {
// $this->PEAR_Error("DB Error: $code", DB_ERROR,
// $mode, $level, $debuginfo);
// }
if (is_int($code)) {
$this->PEAR_Error('DB Error: ' . DB::errorMessage($code), $code,
$mode, $level, $debuginfo);
} else {
$this->PEAR_Error("DB Error: $code", DB_ERROR,
$mode, $level, $debuginfo);
}
}

// }}}
Expand Down

0 comments on commit 3a6e0a1

Please sign in to comment.