From 054e36df6877ca4e326fdd941e9d48df8f5eef10 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Mon, 26 Mar 2007 16:42:45 +0000 Subject: [PATCH] Fix E_NOTICE on line 76 if $_SERVER['HTTP_ACCEPT'] not set --- includes/Metadata.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/Metadata.php b/includes/Metadata.php index 98a92ecd30..9964a3d3aa 100644 --- a/includes/Metadata.php +++ b/includes/Metadata.php @@ -73,6 +73,10 @@ function wfCreativeCommonsRdf($article) { function rdfSetup() { global $wgOut, $_SERVER; + if( !isset($_SERVER['HTTP_ACCEPT']) ) { + $_SERVER['HTTP_ACCEPT'] = ''; + } + $rdftype = wfNegotiateType(wfAcceptToPrefs($_SERVER['HTTP_ACCEPT']), wfAcceptToPrefs(RDF_TYPE_PREFS)); if (!$rdftype) { -- 2.20.1