Skip to content

Commit

Permalink
get_config(): fix a call using the oldstyle return value
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlanghoff committed Jan 17, 2007
1 parent 503d126 commit 6480b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/lib.php
Expand Up @@ -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)) {
Expand Down

0 comments on commit 6480b0d

Please sign in to comment.