summaryrefslogtreecommitdiff
path: root/modules/statistics
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-08-26 10:25:42 +0100
committerDries Buytaert <dries@buytaert.net>2011-08-26 10:25:42 +0100
commitd7fb92eb48de900ae86a312441349bf6e2254eca (patch)
treeb351450b03875bc2fe2259e6e19bf06ec90a1eef /modules/statistics
parentc24655d182fce5abe8ceb3d1e7c3b469b12cb42c (diff)
downloadbrdo-d7fb92eb48de900ae86a312441349bf6e2254eca.tar.gz
brdo-d7fb92eb48de900ae86a312441349bf6e2254eca.tar.bz2
- Patch #1253298 by bfroehle: PHP Notice with statistics_exit().
Diffstat (limited to 'modules/statistics')
-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 6b7be8ac4..69e06f33d 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(),