diff --git a/index.php b/index.php index 3c3d6780..01aa5388 100644 --- a/index.php +++ b/index.php @@ -185,7 +185,9 @@ CARD; foreach($bridgeElement->parameters as $parameterName => $parameter) { $card .= '
    ' . PHP_EOL; - $card .= '
    '.$parameterName.'
    ' . PHP_EOL; + if(!is_numeric($parameterName)) { + $card .= '
    '.$parameterName.'
    ' . PHP_EOL; + } $card .= '
    ' . PHP_EOL; @@ -194,6 +196,8 @@ CARD; foreach($parameter as $inputEntry) { + if(!isset($inputEntry['exampleValue'])) $inputEntry['exampleValue'] = ""; + $idArg = 'arg-' . $bridgeName . '-' . $parameterName . '-' . $inputEntry['identifier']; $card .= '' . PHP_EOL; diff --git a/lib/Bridge.php b/lib/Bridge.php index b4945202..6ff1c389 100644 --- a/lib/Bridge.php +++ b/lib/Bridge.php @@ -17,7 +17,7 @@ abstract class BridgeAbstract implements BridgeInterface{ protected $cache; protected $items = array(); - public $name = "Bridge sans nom"; + public $name = "Unnamed bridge"; public $uri = ""; public $description = 'No description provided'; public $maintainer = 'No maintainer';