Skip to content
Browse files

better fix for 4360

  • Loading branch information...
1 parent ddf32e3 commit 3ceb1580b5dea36a57aed76b2165694bc597625c toyomoyo committed Feb 17, 2006
Showing with 4 additions and 4 deletions.
  1. +4 −4 mod/forum/lib.php
View
8 mod/forum/lib.php
@@ -1293,14 +1293,14 @@ function forum_get_discussions($forum="0", $forumsort="d.timemodified DESC",
} else {
return get_records_sql("SELECT $postdata, d.name, d.timemodified, d.usermodified, d.groupid,
u.firstname, u.lastname, u.email, u.picture $umfields
- FROM ( {$CFG->prefix}forum_discussions d,
- {$CFG->prefix}forum_posts p,
- {$CFG->prefix}user u )
+ FROM {$CFG->prefix}forum_posts p,
+ {$CFG->prefix}user u,
+ {$CFG->prefix}forum_discussions d
$umtable
WHERE d.forum = '$forum'
AND p.discussion = d.id
AND p.parent = 0
- AND p.userid = u.id $groupselect $userselect
+ AND p.userid = u.id $groupselect $userselect
ORDER BY $forumsort $limit");
}
}

0 comments on commit 3ceb158

Please sign in to comment.
Something went wrong with that request. Please try again.