Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…or default role name in some cases
  • Loading branch information...
commit 57793dba2ae4b5383674639cbf1c0788b8d3910a 1 parent 820603e
@mudrd8mz mudrd8mz authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.