From c9253061f2f5dea8a8faa7ac6b7e4f91c13fc6ae Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 17 Jan 2006 08:40:16 +0000 Subject: [PATCH] Fixed incorrect query() parameters, left over from the brief period of time when wfQuery took a DB index as a parameter --- includes/Database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1