summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2011-08-26 10:25:14 +0100
committerDries Buytaert2011-08-26 10:25:14 +0100
commitb247b84867d8e8ac53c4c15a4669e0f0e0bf1146 (patch)
tree541cd5328de2842c738e80a9c966a9da13566db1
parenta40f80428cb95b3a738658638eea2ff576277aa5 (diff)
- Patch #1253298 by bfroehle: PHP Notice with statistics_exit().
-rw-r--r--modules/statistics/statistics.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module
index 6b7be8a..69e06f3 100644
--- a/modules/statistics/statistics.module
+++ b/modules/statistics/statistics.module
@@ -80,7 +80,7 @@ function statistics_exit() {
->fields(array(
'title' => strip_tags(drupal_get_title()),
'path' => $_GET['q'],
- 'url' => $_SERVER['HTTP_REFERER'],
+ 'url' => isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '',
'hostname' => ip_address(),
'uid' => $user->uid,
'sid' => session_id(),