HTML page with search form when /details.php called without params

This commit is contained in:
marc tobias
2019-10-31 17:13:43 +01:00
parent 5930383404
commit 36e99c43ce
4 changed files with 95 additions and 0 deletions

View File

@@ -30,6 +30,11 @@ $oDB->connect();
$sLanguagePrefArraySQL = $oDB->getArraySQL($oDB->getDBQuotedList($aLangPrefOrder));
if ($sOutputFormat == 'html' && !$sPlaceId && !$sOsmType) {
include(CONST_BasePath.'/lib/template/details-index-html.php');
exit;
}
if ($sOsmType && $iOsmId > 0) {
$sSQL = 'SELECT place_id FROM placex WHERE osm_type = :type AND osm_id = :id';
// osm_type and osm_id are not unique enough