From 9820ad5c0f4bc5c82608f03c5a54175fb574f19a Mon Sep 17 00:00:00 2001 From: Antoine Turmel Date: Sat, 20 Oct 2018 13:14:46 +0200 Subject: [PATCH] [BridgeCard] Fix checkbox default value (#874) The current solution just output "1" when checked instead of "checked" --- lib/BridgeCard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/BridgeCard.php b/lib/BridgeCard.php index 0233f075..28e74fe6 100644 --- a/lib/BridgeCard.php +++ b/lib/BridgeCard.php @@ -193,7 +193,7 @@ This bridge is not fetching its content through a secure connection'; . '" type="checkbox" name="' . $name . '" ' - . ($entry['defaultValue'] === 'checked' ?: '') + . ($entry['defaultValue'] === 'checked' ? 'checked' : '') . ' />' . PHP_EOL; }