From: Brion Vibber Date: Sat, 10 Apr 2004 09:45:00 +0000 (+0000) Subject: Don't use the connection ID in error checks. If the connection itself fails, this... X-Git-Tag: 1.3.0beta1~481 X-Git-Url: http://git.cyclocoop.org/%27.generer_url_ecrire%28%27admin_couteau_suisse%27%2C%27cmd=descrip&outil=boites_privees?a=commitdiff_plain;h=f3be3bfbe6625ee567e08c2fc6e737a42ed39deb;p=lhc%2Fweb%2Fwiklou.git Don't use the connection ID in error checks. If the connection itself fails, this just spits out extra error messages and is useless. --- 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