Merge pull request #1524 from MatthiasLohr/bugfix/uninitialized-string-offset

Fix for #1523: Fix PHP warning
This commit is contained in:
Sarah Hoffmann 2019-10-15 09:51:20 +02:00 committed by GitHub
commit e0836664e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);