From: Greg Sabino Mullane Date: Thu, 5 Jun 2008 17:57:34 +0000 (+0000) Subject: Add space before 'LEFT JOIN' so it doesn't become part of the table name. Bug 14412 X-Git-Tag: 1.31.0-rc.0~47145 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=4be3ba85284dc813e649b745457cd7c683249f79;p=lhc%2Fweb%2Fwiklou.git Add space before 'LEFT JOIN' so it doesn't become part of the table name. Bug 14412 --- 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}