Browse Source

Fix incorrect class namespacing.

MOODLE_33_STABLE
Dan Marsden 8 years ago
parent
commit
9b09681b02
  1. 2
      classes/task/notify.php

2
classes/task/notify.php

@ -83,7 +83,7 @@ class notify extends \core\task\scheduled_task {
if (!empty($record->thirdpartyemails)) { if (!empty($record->thirdpartyemails)) {
$sendto = explode(',', $record->thirdpartyemails); $sendto = explode(',', $record->thirdpartyemails);
$record->percent = round($record->percent * 100)."%"; $record->percent = round($record->percent * 100)."%";
$context = context_module::instance($record->cmid); $context = \context_module::instance($record->cmid);
foreach ($sendto as $senduser) { foreach ($sendto as $senduser) {
// Check user is allowed to receive warningemails. // Check user is allowed to receive warningemails.
if (has_capability('mod/attendance:warningemails', $context, $senduser)) { if (has_capability('mod/attendance:warningemails', $context, $senduser)) {

Loading…
Cancel
Save