From: martinlanghoff Date: Fri, 23 Nov 2007 00:23:10 +0000 (+0000) Subject: user/index: Fix Participants page for sitecourse - MDL-12311 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1377ede75daade1481c1210a7c578369d0dae3ec;p=moodle.git user/index: Fix Participants page for sitecourse - MDL-12311 Groups/groupings don't seem to map normally through enrolments as you would expect with site. Disable for sitecourse. --- diff --git a/user/index.php b/user/index.php index 8293328951..43f2aeda2a 100644 --- a/user/index.php +++ b/user/index.php @@ -274,8 +274,8 @@ // and $USER can enrol/unenrol, display extra enrolments & groups information. // (will take 1 extra DB query - 2 on Oracle) // - if ($fullmode === false && - $perpage <= DEFAULT_PAGE_SIZE && has_capability('moodle/role:assign',$context)) { + if ($fullmode === false && $course->id != SITEID + && $perpage <= DEFAULT_PAGE_SIZE && has_capability('moodle/role:assign',$context)) { $showenroldata = true; } else { $showenroldata = false;