From: marc tobias Date: Sun, 24 Feb 2019 15:22:55 +0000 (+0100) Subject: query.php - we no longer support PHP < 5.4 X-Git-Tag: v3.3.0~25^2 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/178cb987951255c24b84bd6d8b0e18315253bcb4 query.php - we no longer support PHP < 5.4 --- diff --git a/utils/query.php b/utils/query.php index 16657daf..9694bbb9 100644 --- a/utils/query.php +++ b/utils/query.php @@ -39,11 +39,7 @@ if ($oParams->getBool('search')) { $aSearchResults = $oGeocode->lookup(); - if (version_compare(phpversion(), '5.4.0', '<')) { - echo json_encode($aSearchResults); - } else { - echo json_encode($aSearchResults, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE)."\n"; - } + echo json_encode($aSearchResults, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE)."\n"; } else { showUsage($aCMDOptions, true); }