diff --git a/lib.php b/lib.php index 1d0e2df..0341b5e 100644 --- a/lib.php +++ b/lib.php @@ -284,7 +284,7 @@ class enrol_ilbead_plugin extends enrol_plugin { $timestart = time(); if ($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"); } else { @@ -414,7 +414,7 @@ class enrol_ilbead_plugin extends enrol_plugin { if ($rusers) { $contact = reset($rusers); } else { - $contact = generate_email_supportuser(); + $contact = core_user::get_support_user(); } // Directly emailing welcome message rather than using messaging.