From 67d8295570bfc84bd67a1c6c15a39958e35d2345 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Tue, 15 Apr 2008 14:35:18 +0000 Subject: [PATCH] Make sure to use table prefixes correctly. Thanks to siebrand for reporting the bug. --- includes/UserMailer.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/UserMailer.php b/includes/UserMailer.php index 546f0c747d..cee1cc8f1a 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -362,7 +362,10 @@ class EmailNotification { } $dbr = wfGetDB( DB_SLAVE ); - $res = $dbr->select( array( 'watchlist', 'user' ), array( 'user.*' ), + list( $user ) = $dbr->tableNamesN( 'user' ); + + $res = $dbr->select( array( 'watchlist', 'user' ), + array( "$user.*" ), array( 'wl_user=user_id', 'wl_title' => $title->getDBkey(), -- 2.20.1