@@ -219,7 +219,7 @@ |
||
219 | 219 | |
220 | 220 | // Pass $view=true to filter hidden caps if the user cannot see them. |
221 | 221 | if ($users = get_users_by_capability($context, 'moodle/course:update', 'u.*', 'u.id ASC', |
222 | - '', '', '', '', false, true)) { |
|
222 | + '', '', '', '', false, true)) { |
|
223 | 223 | $users = sort_by_roleassignment_authority($users, $context); |
224 | 224 | $teacher = array_shift($users); |
225 | 225 | } else { |
@@ -99,7 +99,7 @@ |
||
99 | 99 | // Should double-check with paypal everytime ? |
100 | 100 | $context = $info->get_context(); |
101 | 101 | $allow = $DB->record_exists('availability_paypal_tnx', |
102 | - array('userid' => $userid, |
|
102 | + array('userid' => $userid, |
|
103 | 103 | 'contextid' => $context->id, |
104 | 104 | 'payment_status' => 'Completed')); |
105 | 105 | if ($not) { |