From b26c49d3d8706278bc6adeadaff9544c74f0e025 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Fri, 9 Feb 2001 14:13:00 +0000
Subject: [PATCH] - last night's fix

---
 includes/watchdog.inc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/includes/watchdog.inc b/includes/watchdog.inc
index 6a5b66163dba..41961d66120f 100644
--- a/includes/watchdog.inc
+++ b/includes/watchdog.inc
@@ -9,7 +9,7 @@
 
 function watchdog($id, $message) {
   global $user, $watchdog, $watchdog_history;
-/*
+
   if ($watchdog[$id][1] && !user_permission()) {
     if ($log = db_fetch_object(db_query("SELECT * FROM watchdog WHERE hostname = '". getenv("REMOTE_ADDR") ."' AND level = '". $watchdog[$id][0] ."'"))) {
       if (time() - $log->timestamp < $watchdog[$id][1]) {
@@ -19,7 +19,6 @@ function watchdog($id, $message) {
       }
     }
   }
-*/
 
   // Perform query to add new watchdog entry:
   db_query("INSERT INTO watchdog (level, timestamp, user, message, location, hostname) VALUES ('". $watchdog[$id][0] ."', '". time() ."', '". check_input($user->id) ."', '". check_input($message) ."', '". check_input(getenv("REQUEST_URI")) ."', '". check_input(getenv("REMOTE_ADDR")) ."')");
-- 
GitLab