summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-07-26 03:05:36 +0000
committerDries Buytaert <dries@buytaert.net>2010-07-26 03:05:36 +0000
commita378853208e8a76068716c6a30947da7a789bc91 (patch)
tree54c92e910ed8fe5834cbfc7a64ed46eaf2d68f0a
parent57e88bff51385826190dd30066c704391dbc9b3b (diff)
downloadbrdo-a378853208e8a76068716c6a30947da7a789bc91.tar.gz
brdo-a378853208e8a76068716c6a30947da7a789bc91.tar.bz2
- Patch #861876 by andypost: notice in watchdog().
-rw-r--r--includes/bootstrap.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 3edab924d..687a8b6f6 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -1645,7 +1645,7 @@ function watchdog($type, $message, $variables = array(), $severity = WATCHDOG_NO
'link' => $link,
'user' => $user,
'request_uri' => $base_root . request_uri(),
- 'referer' => $_SERVER['HTTP_REFERER'],
+ 'referer' => isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '',
'ip' => ip_address(),
'timestamp' => REQUEST_TIME,
);