Skip to content

Commit

Permalink
Removed log and fixed email call
Browse files Browse the repository at this point in the history
  • Loading branch information
martin committed May 31, 2002
1 parent 6c19f34 commit 7938904
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions error/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,18 @@
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");

?>
Expand Down

0 comments on commit 7938904

Please sign in to comment.