From 766f7772a5d852d1647f5d0d73868e58560f2660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sch=C3=BCtte?= Date: Fri, 11 Mar 2016 16:17:20 +0100 Subject: [PATCH] bugfix, again --- freifunkmeta.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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
';