Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3151c3b
)
MDL-60710 course: Fix incorrect reference to role
author
David Monllao
<davidm@moodle.com>
Wed, 10 Oct 2018 08:57:43 +0000
(10:57 +0200)
committer
David Monllao
<davidm@moodle.com>
Wed, 10 Oct 2018 08:57:47 +0000
(10:57 +0200)
course/externallib.php
patch
|
blob
|
blame
|
history
diff --git
a/course/externallib.php
b/course/externallib.php
index
e570119
..
cb699fa
100644
(file)
--- a/
course/externallib.php
+++ b/
course/externallib.php
@@
-2266,7
+2266,7
@@
class core_course_external extends external_api {
'fullname' => $contact['username'],
'roles' => array_map(function($role){
return array('id' => $role->id, 'name' => $role->displayname);
- }, $contact['role']),
+ }, $contact['role
s
']),
'role' => array('id' => $contact['role']->id, 'name' => $contact['role']->displayname),
'rolename' => $contact['rolename']
);