@@ -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 { |
@@ -95,7 +95,7 @@ |
||
95 | 95 | // should double-check with paypal everytime ? |
96 | 96 | $context = $info->get_context(); |
97 | 97 | return $DB->record_exists('paypal_transactions', |
98 | - array('userid' => $userid, |
|
98 | + array('userid' => $userid, |
|
99 | 99 | 'contextid' => $context->id, |
100 | 100 | 'payment_status' => 'Completed')); |
101 | 101 | } |