diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-07-26 03:05:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-07-26 03:05:36 +0000 |
commit | a378853208e8a76068716c6a30947da7a789bc91 (patch) | |
tree | 54c92e910ed8fe5834cbfc7a64ed46eaf2d68f0a | |
parent | 57e88bff51385826190dd30066c704391dbc9b3b (diff) | |
download | brdo-a378853208e8a76068716c6a30947da7a789bc91.tar.gz brdo-a378853208e8a76068716c6a30947da7a789bc91.tar.bz2 |
- Patch #861876 by andypost: notice in watchdog().
-rw-r--r-- | includes/bootstrap.inc | 2 |
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, ); |