Fixed PHP warning from #1523

Signed-off-by: Matthias Lohr <mail@mlohr.com>
This commit is contained in:
Matthias Lohr
2019-10-15 08:46:19 +02:00
parent a7b24627b5
commit 8d7499342f

View File

@@ -50,6 +50,7 @@ $oGeocode->setQueryFromParams($oParams);
if (!$oGeocode->getQueryString()
&& isset($_SERVER['PATH_INFO'])
&& strlen($_SERVER['PATH_INFO']) > 0
&& $_SERVER['PATH_INFO'][0] == '/'
) {
$sQuery = substr(rawurldecode($_SERVER['PATH_INFO']), 1);