diff options
author | 2019-01-22 19:12:37 +0100 | |
---|---|---|
committer | 2019-01-22 19:12:37 +0100 | |
commit | a29512deee9c39dcf537d0cac84a4866fc71923c (patch) | |
tree | 929a345d4e3a176cc1391656c36194a4664b40c8 | |
parent | e0db349a579b466b9e7e9c7e96274d55af1fd67f (diff) | |
download | rss-bridge-a29512deee9c39dcf537d0cac84a4866fc71923c.tar.gz rss-bridge-a29512deee9c39dcf537d0cac84a4866fc71923c.tar.zst rss-bridge-a29512deee9c39dcf537d0cac84a4866fc71923c.zip |
[BridgeCard] Don't warn about the 'required' attribute if it is set to false
-rw-r--r-- | lib/BridgeCard.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/BridgeCard.php b/lib/BridgeCard.php index 9d42cacf..697433ff 100644 --- a/lib/BridgeCard.php +++ b/lib/BridgeCard.php @@ -207,7 +207,7 @@ This bridge is not fetching its content through a secure connection</div>'; * @return string The list input field */ private static function getListInput($entry, $id, $name) { - if(isset($entry['required'])) { + if(isset($entry['required']) && $entry['required'] === true) { Debug::log('The "required" attribute is not supported for lists.'); unset($entry['required']); } @@ -272,7 +272,7 @@ This bridge is not fetching its content through a secure connection</div>'; * @return string The checkbox input field */ private static function getCheckboxInput($entry, $id, $name) { - if(isset($entry['required'])) { + if(isset($entry['required']) && $entry['required'] === true) { Debug::log('The "required" attribute is not supported for checkboxes.'); unset($entry['required']); } |