Skip to content
Browse files

MNet enrol/mnet/enrol.php/available_courses returns wrong array key f…

…or default role name in some cases
  • Loading branch information...
1 parent 820603e commit 57793dba2ae4b5383674639cbf1c0788b8d3910a @mudrd8mz mudrd8mz committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 enrol/mnet/enrol.php
View
4 enrol/mnet/enrol.php
@@ -171,7 +171,7 @@ function available_courses() {
co.cost,
co.currency,
co.defaultrole as defaultroleid,
- r.name
+ r.name as defaultrolename
FROM
{$CFG->prefix}course_categories ca
JOIN
@@ -206,7 +206,7 @@ function available_courses() {
co.cost,
co.currency,
co.defaultrole as defaultroleid,
- r.name
+ r.name as defaultrolename
FROM
{$CFG->prefix}course_categories ca
JOIN

0 comments on commit 57793db

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