fix json output of empty arrays

This commit is contained in:
Sarah Hoffmann
2015-08-15 09:52:48 +02:00
parent c242386ddb
commit 5c187182a3
5 changed files with 7 additions and 7 deletions

View File

@@ -1789,7 +1789,7 @@
}
else
{
$aResult['sExtraTags'] = array();
$aResult['sExtraTags'] = (object) array();
}
}
@@ -1801,7 +1801,7 @@
}
else
{
$aResult['sNameDetails'] = array();
$aResult['sNameDetails'] = (object) array();
}
}

View File

@@ -127,7 +127,7 @@
}
else
{
$aPlace['sExtraTags'] = array();
$aPlace['sExtraTags'] = (object) array();
}
}
@@ -139,7 +139,7 @@
}
else
{
$aPlace['sNameDetails'] = array();
$aPlace['sNameDetails'] = (object) array();
}
}

View File

@@ -26,5 +26,5 @@
if (isset($aPlace['sNameDetails'])) $aFilteredPlaces['namedetails'] = $aPlace['sNameDetails'];
}
javascript_renderData($aFilteredPlaces, JSON_FORCE_OBJECT);
javascript_renderData($aFilteredPlaces);

View File

@@ -38,4 +38,4 @@
if (isset($aPlace['sNameDetails'])) $aFilteredPlaces['namedetails'] = $aPlace['sNameDetails'];
}
javascript_renderData($aFilteredPlaces, JSON_FORCE_OBJECT);
javascript_renderData($aFilteredPlaces);

View File

@@ -79,4 +79,4 @@
$aFilteredPlaces[] = $aPlace;
}
javascript_renderData($aFilteredPlaces, array('geojson'));
javascript_renderData($aFilteredPlaces);