mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-09 03:24:06 +00:00
Fixed PHP warning from #1523
Signed-off-by: Matthias Lohr <mail@mlohr.com>
This commit is contained in:
@@ -50,6 +50,7 @@ $oGeocode->setQueryFromParams($oParams);
|
|||||||
|
|
||||||
if (!$oGeocode->getQueryString()
|
if (!$oGeocode->getQueryString()
|
||||||
&& isset($_SERVER['PATH_INFO'])
|
&& isset($_SERVER['PATH_INFO'])
|
||||||
|
&& strlen($_SERVER['PATH_INFO']) > 0
|
||||||
&& $_SERVER['PATH_INFO'][0] == '/'
|
&& $_SERVER['PATH_INFO'][0] == '/'
|
||||||
) {
|
) {
|
||||||
$sQuery = substr(rawurldecode($_SERVER['PATH_INFO']), 1);
|
$sQuery = substr(rawurldecode($_SERVER['PATH_INFO']), 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user