From c689180fefa0a95499f2cf774f528ddef42e104f Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 15 Aug 2016 01:14:00 +0200 Subject: [PATCH] [HTMLUtils] Make 'required' attribute Boolean The 'required' attribute can now be used for all parameters and enabled/disabled using Boolean states true/false respectively: "required" : true or "required" : false This now complies to the Wiki: https://github.com/RSS-Bridge/rss-bridge/wiki/BridgeAbstract --- lib/HTMLUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/HTMLUtils.php b/lib/HTMLUtils.php index 3745c34..c025e85 100644 --- a/lib/HTMLUtils.php +++ b/lib/HTMLUtils.php @@ -91,7 +91,7 @@ CARD; foreach($parameter as $inputEntry) { $additionalInfoString = ""; - if(isset($inputEntry['required'])) { + if(isset($inputEntry['required']) && $inputEntry['required'] === true) { $additionalInfoString .= " required";