From 98537591d326b824119670d2a6ac3577e2499e5e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 12 Dec 2004 03:54:20 +0000 Subject: [PATCH] Fix notice error on UA check when no user-agent header sent --- includes/OutputPage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 667cd78252..2597557603 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -91,7 +91,8 @@ class OutputPage { wfDebug( "CACHE DISABLED\n", false ); return; } - if( preg_match( '/MSIE ([1-4]|5\.0)/', $_SERVER["HTTP_USER_AGENT"] ) ) { + if( isset( $_SERVER["HTTP_USER_AGENT"] ) && + preg_match( '/MSIE ([1-4]|5\.0)/', $_SERVER["HTTP_USER_AGENT"] ) ) { # IE 5.0 has probs with our caching wfDebug( "-- bad client, not caching\n", false ); return; -- 2.20.1