Skip to content
Snippets Groups Projects
Commit b247b848 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent a40f8042
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -80,7 +80,7 @@ function statistics_exit() { ...@@ -80,7 +80,7 @@ function statistics_exit() {
->fields(array( ->fields(array(
'title' => strip_tags(drupal_get_title()), 'title' => strip_tags(drupal_get_title()),
'path' => $_GET['q'], 'path' => $_GET['q'],
'url' => $_SERVER['HTTP_REFERER'], 'url' => isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '',
'hostname' => ip_address(), 'hostname' => ip_address(),
'uid' => $user->uid, 'uid' => $user->uid,
'sid' => session_id(), 'sid' => session_id(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment