Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
David Mudrák authored June 28, 2010

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  enrol/mnet/enrol.php
4  enrol/mnet/enrol.php
@@ -171,7 +171,7 @@ function available_courses() {
171 171
                 co.cost,
172 172
                 co.currency,
173 173
                 co.defaultrole as defaultroleid,
174  
-                r.name
  174
+                r.name as defaultrolename
175 175
             FROM
176 176
                 {$CFG->prefix}course_categories ca
177 177
             JOIN
@@ -206,7 +206,7 @@ function available_courses() {
206 206
                     co.cost,
207 207
                     co.currency,
208 208
                     co.defaultrole as defaultroleid,
209  
-                    r.name
  209
+                    r.name as defaultrolename
210 210
                 FROM
211 211
                     {$CFG->prefix}course_categories ca
212 212
                 JOIN

0 notes on commit 57793db

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