From: martinlanghoff Date: Wed, 17 Jan 2007 06:13:09 +0000 (+0000) Subject: get_config(): fix a call using the oldstyle return value X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6480b0da92b10ec316b3f97cbdfb6afcf16a7787;p=moodle.git get_config(): fix a call using the oldstyle return value --- diff --git a/course/lib.php b/course/lib.php index fa2973d7a1..658784cb20 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1786,7 +1786,7 @@ function print_course($course, $width="100%") { /// first find all roles that are supposed to be displayed if ($managerroles = get_config('', 'coursemanager')) { - $coursemanagerroles = split(',', $managerroles->value); + $coursemanagerroles = split(',', $managerroles); foreach ($coursemanagerroles as $roleid) { $role = get_record('role','id',$roleid); if ($users = get_role_users($roleid, $context, true, '', 'u.lastname ASC', true)) {