From: Aryeh Gregor Date: Tue, 27 Mar 2007 02:51:56 +0000 (+0000) Subject: While I'm at it, why not pseudo-initialize to null instead of ''? No difference... X-Git-Tag: 1.31.0-rc.0~53591 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=2563f876c700a12b72c95722a961d536d0b7a008;p=lhc%2Fweb%2Fwiklou.git 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. --- 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));