From: Tim Starling Date: Tue, 17 Jan 2006 08:40:16 +0000 (+0000) Subject: Fixed incorrect query() parameters, left over from the brief period of time when... X-Git-Tag: 1.6.0~502 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=c9253061f2f5dea8a8faa7ac6b7e4f91c13fc6ae;p=lhc%2Fweb%2Fwiklou.git Fixed incorrect query() parameters, left over from the brief period of time when wfQuery took a DB index as a parameter --- diff --git a/includes/Database.php b/includes/Database.php index dab31183a0..0a4b827ac5 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -705,7 +705,7 @@ class Database { $table = $this->tableName( $table ); $sql = "UPDATE $table SET $var = '" . $this->strencode( $value ) . "' WHERE ($cond)"; - return (bool)$this->query( $sql, DB_MASTER, $fname ); + return (bool)$this->query( $sql, $fname ); } /** @@ -870,7 +870,7 @@ class Database { */ function fieldExists( $table, $field, $fname = 'Database::fieldExists' ) { $table = $this->tableName( $table ); - $res = $this->query( 'DESCRIBE '.$table, DB_SLAVE, $fname ); + $res = $this->query( 'DESCRIBE '.$table, $fname ); if ( !$res ) { return NULL; }