• I get:
    PHP Notice: Undefined index: HTTP_USER_AGENT in /wp-content/themes/tempera/includes/theme-functions.php on line 464

    This is a test for mobile. Since variable is not set, empty string is set.
    The code fix is:
    ‘$browser = isset($_SERVER[‘HTTP_USER_AGENT’]) ? $_SERVER[‘HTTP_USER_AGENT’] : “” ; `
    Just replace line 464 with the line above.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Notice: Undefined index: HTTP_USER_AGENT’ is closed to new replies.