Permalink
Browse files

Removed log and fixed email call

  • Loading branch information...
1 parent 6c19f34 commit 79389048fdb19fd9c8ad9394eeed2b723a4ead1b martin committed May 31, 2002
Showing with 2 additions and 4 deletions.
  1. +2 −4 error/index.php
View
@@ -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");
?>

0 comments on commit 7938904

Please sign in to comment.