Skip to content

Commit

Permalink
MDL-31185 fix missing CFG in forum_get_posts_by_user()
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jan 21, 2012
1 parent 1aff7bb commit 203ee49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/forum/lib.php
Expand Up @@ -8171,7 +8171,7 @@ function forum_get_forums_user_posted_in($user, array $courseids = null, $discus
* ->posts: An array containing the posts to show for this request.
*/
function forum_get_posts_by_user($user, array $courses, $musthaveaccess = false, $discussionsonly = false, $limitfrom = 0, $limitnum = 50) {
global $DB, $USER;
global $DB, $USER, $CFG;

$return = new stdClass;
$return->totalcount = 0; // The total number of posts that the current user is able to view
Expand Down

0 comments on commit 203ee49

Please sign in to comment.