require("../config.php");
if (isset($text)) { // form submitted
- if (!$user = get_record("users", "id", 1)) {
+ if (!$user = get_records("users", "id", 1)) {
error("Could not find the admin user to mail to!");
}
- email_to_user($user, $USER, "Error: $referer -> $requested", "$text");
+ email_to_users($user, $USER, "Error: $referer -> $requested", "$text");
redirect("$CFG->wwwroot/course/", "Message sent, thanks", 3);
die;
print_header("$CFG->sitename:Error", "$CFG->sitename: Error 404", "", "form.text");
- add_to_log("Error: $HTTP_REFERER -> $REQUEST_URI");
-
print_simple_box("An unusual error occurred (tried to reach a page that doesn't exist).<P align=center>$REQUEST_URI", "center", "", "$THEME->cellheading");
?>