From f3be3bfbe6625ee567e08c2fc6e737a42ed39deb Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 10 Apr 2004 09:45:00 +0000 Subject: [PATCH] Don't use the connection ID in error checks. If the connection itself fails, this just spits out extra error messages and is useless. --- includes/Database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Database.php b/includes/Database.php index d3ed827068..89bdb4d6fb 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -214,8 +214,8 @@ class Database { function fieldName( $res, $n ) { return mysql_field_name( $res, $n ); } function insertId() { return mysql_insert_id( $this->mConn ); } function dataSeek( $res, $row ) { return mysql_data_seek( $res, $row ); } - function lastErrno() { return mysql_errno( $this->mConn ); } - function lastError() { return mysql_error( $this->mConn ); } + function lastErrno() { return mysql_errno(); } + function lastError() { return mysql_error(); } function affectedRows() { return mysql_affected_rows( $this->mConn ); } # Simple UPDATE wrapper -- 2.20.1