]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix variable name in search xml output
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 27 May 2016 21:35:24 +0000 (23:35 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 27 May 2016 21:35:24 +0000 (23:35 +0200)
lib/template/search-xml.php

index dd02b7c7a2364c87ed18a10854dbd6644c4300a5..7cbcc04bf605623e3485b03f9d15910e7f649259 100644 (file)
@@ -25,8 +25,8 @@
        foreach($aSearchResults as $iResNum => $aResult)
        {
                echo "<place place_id='".$aResult['place_id']."'";
-               $sOSMType = ($aPointDetails['osm_type'] == 'N'?'node':($aPointDetails['osm_type'] == 'W'?'way':($aPointDetails['osm_type'] == 'R'?'relation':
-               ($aPointDetails['osm_type'] == 'T'?'tiger':($aPointDetails['osm_type'] == 'I'?'interpolation':'')))));
+               $sOSMType = ($aResult['osm_type'] == 'N'?'node':($aResult['osm_type'] == 'W'?'way':($aResult['osm_type'] == 'R'?'relation':
+               ($aResult['osm_type'] == 'T'?'tiger':($aResult['osm_type'] == 'I'?'interpolation':'')))));
                if ($sOSMType)
                {
                        echo " osm_type='$sOSMType'";