get_config(): fix a call using the oldstyle return value

This commit is contained in:
martinlanghoff 2007-01-17 06:13:09 +00:00
parent 503d126273
commit 6480b0da92

View File

@ -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)) {