Compare commits

...

1 Commits

Author SHA1 Message Date
Matheus Garcia f31c599a2b Ajustes para Moodle 3.4 7 years ago
  1. 4
      lib.php

4
lib.php

@ -284,7 +284,7 @@ class enrol_ilbead_plugin extends enrol_plugin {
$timestart = time(); $timestart = time();
if ($instance->enrolperiod) { if ($instance->enrolperiod) {
$timeend = date("Y/m/d", (string)($timestart + $instance->enrolperiod)); $timeend = date("Y/m/d", (string)($timestart + $instance->enrolperiod));
list($year, $month, $day) = split("/", $timeend); list($year, $month, $day) = explode("/", $timeend);
$timeend = (int)strtotime("$year-$month-$day 23:59:59"); $timeend = (int)strtotime("$year-$month-$day 23:59:59");
} else { } else {
@ -414,7 +414,7 @@ class enrol_ilbead_plugin extends enrol_plugin {
if ($rusers) { if ($rusers) {
$contact = reset($rusers); $contact = reset($rusers);
} else { } else {
$contact = generate_email_supportuser(); $contact = core_user::get_support_user();
} }
// Directly emailing welcome message rather than using messaging. // Directly emailing welcome message rather than using messaging.

Loading…
Cancel
Save