diff --git a/htdocs/caldav.php b/htdocs/caldav.php index 5a7ba7d3..aa8e4d34 100644 --- a/htdocs/caldav.php +++ b/htdocs/caldav.php @@ -9,7 +9,7 @@ * @license http://gnu.org/copyleft/gpl.html GNU GPL v2 */ require_once("always.php"); -dbg_error_log( "caldav", " User agent: %s", $_SERVER['HTTP_USER_AGENT'] ); +dbg_error_log( "caldav", " User agent: %s", ((isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "Unfortunately Mulberry and Chandler don't send a 'User-agent' header with their requests :-(")) ); require_once("BasicAuthSession.php"); $raw_headers = apache_request_headers();