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.
This commit is contained in:
mchurch
2005-04-24 02:02:09 +00:00
parent 3d83e9ef27
commit cfdc10e63c
+1 -1
View File
@@ -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,