From 4be3ba85284dc813e649b745457cd7c683249f79 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Thu, 5 Jun 2008 17:57:34 +0000 Subject: [PATCH] Add space before 'LEFT JOIN' so it doesn't become part of the table name. Bug 14412 --- includes/SpecialRecentchangeslinked.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SpecialRecentchangeslinked.php b/includes/SpecialRecentchangeslinked.php index a6bf0e7a71..12a1a23960 100644 --- a/includes/SpecialRecentchangeslinked.php +++ b/includes/SpecialRecentchangeslinked.php @@ -109,7 +109,7 @@ function wfSpecialRecentchangeslinked( $par = NULL ) { $catkey = $dbr->addQuotes( $nt->getDBkey() ); # The table clauses $tables = "$categorylinks, $recentchanges"; - $tables .= $uid ? "LEFT JOIN $watchlist ON wl_user={$uid} AND wl_title=rc_title AND wl_namespace=rc_namespace " : ""; + $tables .= $uid ? " LEFT JOIN $watchlist ON wl_user={$uid} AND wl_title=rc_title AND wl_namespace=rc_namespace " : ""; $sql = "SELECT /* wfSpecialRecentchangeslinked */ $fields FROM $tables WHERE rc_timestamp > '{$cutoff}' {$cmq} @@ -126,7 +126,7 @@ function wfSpecialRecentchangeslinked( $par = NULL ) { } # The table clauses $tables = "$pagelinks, $recentchanges"; - $tables .= $uid ? "LEFT JOIN $watchlist ON wl_user={$uid} AND wl_title=rc_title AND wl_namespace=rc_namespace " : ""; + $tables .= $uid ? " LEFT JOIN $watchlist ON wl_user={$uid} AND wl_title=rc_title AND wl_namespace=rc_namespace " : ""; $sql = "SELECT /* wfSpecialRecentchangeslinked */ $fields FROM $tables WHERE rc_timestamp > '{$cutoff}' {$cmq} -- 2.20.1