Add space before 'LEFT JOIN' so it doesn't become part of the table name. Bug 14412
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Thu, 5 Jun 2008 17:57:34 +0000 (17:57 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Thu, 5 Jun 2008 17:57:34 +0000 (17:57 +0000)
includes/SpecialRecentchangeslinked.php

index a6bf0e7..12a1a23 100644 (file)
@@ -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}