]> git.mjollnir.org Git - moodle.git/commitdiff
get_my_courses() - ensure we have groupmode, groupmodeforce in $d_fields - calendar...
authormartinlanghoff <martinlanghoff>
Sun, 6 May 2007 05:37:28 +0000 (05:37 +0000)
committermartinlanghoff <martinlanghoff>
Sun, 6 May 2007 05:37:28 +0000 (05:37 +0000)
lib/datalib.php

index 7472d84bda37242fc791e76b06cdd9adbe0f26cb..53ec22c98b611c55fb567b3c5b45f6cbcf919a8c 100644 (file)
@@ -686,7 +686,7 @@ function get_my_courses($userid, $sort=NULL, $fields=NULL, $doanything=false,$li
 
     // Default parameters
     $d_sort   = 'visible DESC,sortorder ASC';
-    $d_fields = 'id, category, sortorder, shortname, fullname, idnumber, newsitems, teacher, teachers, student, students, guest, startdate, visible, cost, enrol, summary';
+    $d_fields = 'id, category, sortorder, shortname, fullname, idnumber, newsitems, teacher, teachers, student, students, guest, startdate, visible, cost, enrol, summary, groupmode, groupmodeforce';
 
     $usingdefaults = true;
     if (is_null($sort)) {