Removed log and fixed email call
authormartin <martin>
Fri, 31 May 2002 13:24:14 +0000 (13:24 +0000)
committermartin <martin>
Fri, 31 May 2002 13:24:14 +0000 (13:24 +0000)
error/index.php

index 5e48d3ff23934da01650092ce3936aa3e18083ab..a4bef56d00eed94610b1f4c71fedd7b9f1f6563d 100644 (file)
@@ -3,11 +3,11 @@
     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;
@@ -15,8 +15,6 @@
     
     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");
   
 ?>