mirror of
https://github.com/klokantech/tileserver-php.git
synced 2025-08-01 12:10:13 +02:00
Empty index.json missing [ #22
This commit is contained in:
@@ -517,7 +517,11 @@ class Json extends Server {
|
||||
foreach ($maps as $map) {
|
||||
$output = $output . json_encode($this->metadataTileJson($map)) . ',';
|
||||
}
|
||||
$output = substr_replace($output, ']', -1);
|
||||
if(strlen($output) > 1){
|
||||
$output = substr_replace($output, ']', -1);
|
||||
}else{
|
||||
$output = $output.']';
|
||||
}
|
||||
} else {
|
||||
foreach ($maps as $map) {
|
||||
if (strpos($map['basename'], $basename) !== false) {
|
||||
|
Reference in New Issue
Block a user