From cfdc10e63c205b5807962ba52099eac90d7d264e Mon Sep 17 00:00:00 2001 From: mchurch Date: Sun, 24 Apr 2005 02:02:09 +0000 Subject: [PATCH] Corrected an SQL statement that used 'user' instead of $CFG->prefix.'user'. Note - this is a left join of a table that is already inner joined in the same statement. There may be other problems here. --- mod/forum/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index c5e2d24147b..58c41496198 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -1255,7 +1255,7 @@ function forum_get_discussions($forum="0", $forumsort="d.timemodified DESC", $umtable = ''; } else { $umfields = ', um.firstname AS umfirstname, um.lastname AS umlastname'; - $umtable = ' LEFT JOIN user um on (d.usermodified = um.id)'; + $umtable = ' LEFT JOIN '.$CFG->prefix.'user um on (d.usermodified = um.id)'; } return get_records_sql("SELECT $postdata, d.name, d.timemodified, d.usermodified, d.groupid,