diff --git a/freifunkmeta.php b/freifunkmeta.php index 235e39c..ca39e8e 100644 --- a/freifunkmeta.php +++ b/freifunkmeta.php @@ -296,11 +296,13 @@ EOT; $services = $citydata['services']; $outstr = ''; foreach ( $services as $service ) { + $internalUri = isset($service['internalUri']) ? $service['internalUri'] : ''; + $externalUri = isset($service['externalUri']) ? $service['externalUri'] : ''; $outstr .= sprintf( '', - $service['serviceName'], $service['serviceDescription'], - $service['internalUri'], $service['internalUri'], - $service['externalUri']?:'#', $service['externalUri']?:'' + $service['serviceName'], $service['serviceDescription'], + $internalUri, $internalUri, + $externalUri, $externalUri ); } $outstr .= '
DienstBeschreibungFreifunk URIInternet URI
%s%s%s%s
';