Skip to content
Permalink
Browse files

follow correct naming convention when fetching legacy teacher role

  • Loading branch information...
mjollnir_
mjollnir_ committed Sep 23, 2006
1 parent 7eb0b60 commit 09cf1c9b55696619e324fc228529c5a5e61da8cc
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/statslib.php
@@ -1136,7 +1136,7 @@ function stats_upgrade_user_table_for_roles ($period) {
}
if (!$teacher_role_id) {
$role = get_roles_with_capability('moodle/legacy:teacher', CAP_ALLOW);
$role = get_roles_with_capability('moodle/legacy:editingteacher', CAP_ALLOW);
$role = array_keys($role);
$teacher_role_id = $role[0];
$role = get_roles_with_capability('moodle/legacy:student', CAP_ALLOW);

0 comments on commit 09cf1c9

Please sign in to comment.
You can’t perform that action at this time.