X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2a784fa3d4533d11e3227f868085dcee5a9870c6..cfed4bc204e172dd48054b001abea04b9fc8675a:/lib/ParameterParser.php diff --git a/lib/ParameterParser.php b/lib/ParameterParser.php index f3596cfd..0c0471a3 100644 --- a/lib/ParameterParser.php +++ b/lib/ParameterParser.php @@ -4,9 +4,10 @@ class ParameterParser { private $aParams; - function __construct($aParams = NULL) + + function __construct($aParams = null) { - $this->aParams = ($aParams === NULL) ? $_GET : $aParams; + $this->aParams = ($aParams === null) ? $_GET : $aParams; } function getBool($sName, $bDefault = false) @@ -77,9 +78,9 @@ class ParameterParser return $aDefault; } - function getPreferredLanguages($sFallback = NULL) + function getPreferredLanguages($sFallback = null) { - if ($sFallback === NULL && isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) { + if ($sFallback === null && isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) { $sFallback = $_SERVER["HTTP_ACCEPT_LANGUAGE"]; }