Commit b247b848 authored by Dries's avatar Dries

- Patch #1253298 by bfroehle: PHP Notice with statistics_exit().

parent a40f8042
......@@ -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(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment