diff --git a/index.php b/index.php index 89ebf18f..3404f895 100644 --- a/index.php +++ b/index.php @@ -203,7 +203,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; @@ -212,6 +214,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';