Permalink
Browse files

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.
  • Loading branch information...
1 parent 3d83e9e commit cfdc10e63c205b5807962ba52099eac90d7d264e mchurch committed Apr 24, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
@@ -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,

0 comments on commit cfdc10e

Please sign in to comment.