summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-02-10 17:52:21 +0000
committerDries Buytaert <dries@buytaert.net>2001-02-10 17:52:21 +0000
commit282fbfd26a9ce66c5ac012a606e770c619a11278 (patch)
tree5cc75e8e344f57ac6ed0c8eb82faafa4b3484153
parent171479fcfa4ddd85c7a1d9564ca286a5c91a418f (diff)
downloadbrdo-282fbfd26a9ce66c5ac012a606e770c619a11278.tar.gz
brdo-282fbfd26a9ce66c5ac012a606e770c619a11278.tar.bz2
- fixed problem with user_permission (reported by Kirstjan)
-rw-r--r--includes/watchdog.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/watchdog.inc b/includes/watchdog.inc
index 41961d661..fd72d3512 100644
--- a/includes/watchdog.inc
+++ b/includes/watchdog.inc
@@ -10,7 +10,7 @@ $watchdog = array("comment" => array("0", $submission_rate["comment"]),
function watchdog($id, $message) {
global $user, $watchdog, $watchdog_history;
- if ($watchdog[$id][1] && !user_permission()) {
+ if ($watchdog[$id][1] && !user_permission($user)) {
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]) {
watchdog("warning", "'". getenv("REMOTE_ADDR") ."' exceeded '$id' submission rate");