From 2563f876c700a12b72c95722a961d536d0b7a008 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Tue, 27 Mar 2007 02:51:56 +0000 Subject: [PATCH] While I'm at it, why not pseudo-initialize to null instead of ''? No difference in behavior, due to behavior of the receiving function, but who knows, it makes more sense. More semantic-y, kinda. --- includes/Metadata.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Metadata.php b/includes/Metadata.php index 0cb9ca3c2c..b90c1f4734 100644 --- a/includes/Metadata.php +++ b/includes/Metadata.php @@ -73,7 +73,7 @@ function wfCreativeCommonsRdf($article) { function rdfSetup() { global $wgOut, $_SERVER; - $httpaccept = isset($_SERVER['HTTP_ACCEPT']) ? $_SERVER['HTTP_ACCEPT'] : ''; + $httpaccept = isset($_SERVER['HTTP_ACCEPT']) ? $_SERVER['HTTP_ACCEPT'] : null; $rdftype = wfNegotiateType(wfAcceptToPrefs($httpaccept, wfAcceptToPrefs(RDF_TYPE_PREFS)); -- 2.20.1