• Hey friends at CallRail! Looks like your plugin is generating a PHP Notice in my logs, nothing serious but would be awesome if it weren’t there… ??

    Here’s the error:

    PHP Notice: Undefined index: HTTP_USER_AGENT in .../plugins/callrail-phone-call-tracking/callrail.php on line 341

    And the fix is pretty straight forward, line 341 in that file becomes this set of lines:

    if(isset($_SERVER['HTTP_USER_AGENT'])) {
      $user_agent = $_SERVER['HTTP_USER_AGENT'];
    } else {
      $user_agent = '';
    }

    Would be awesome to get a patch, thanks!

  • The topic ‘Undefined index: HTTP_USER_AGENT’ is closed to new replies.