}
else
{
- $aResult['sExtraTags'] = array();
+ $aResult['sExtraTags'] = (object) array();
}
}
}
else
{
- $aResult['sNameDetails'] = array();
+ $aResult['sNameDetails'] = (object) array();
}
}
}
else
{
- $aPlace['sExtraTags'] = array();
+ $aPlace['sExtraTags'] = (object) array();
}
}
}
else
{
- $aPlace['sNameDetails'] = array();
+ $aPlace['sNameDetails'] = (object) array();
}
}
if (isset($aPlace['sNameDetails'])) $aFilteredPlaces['namedetails'] = $aPlace['sNameDetails'];
}
- javascript_renderData($aFilteredPlaces, JSON_FORCE_OBJECT);
+ javascript_renderData($aFilteredPlaces);
if (isset($aPlace['sNameDetails'])) $aFilteredPlaces['namedetails'] = $aPlace['sNameDetails'];
}
- javascript_renderData($aFilteredPlaces, JSON_FORCE_OBJECT);
+ javascript_renderData($aFilteredPlaces);
$aFilteredPlaces[] = $aPlace;
}
- javascript_renderData($aFilteredPlaces, array('geojson'));
+ javascript_renderData($aFilteredPlaces);