From c8e5823393ae31016bbdbbb0244b1371eafe179b Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Mon, 27 Feb 2023 11:13:40 +0100 Subject: [PATCH] chg: [helper:bootstrap] Make sure to output the value even if it's a `0` --- src/View/Helper/BootstrapHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/View/Helper/BootstrapHelper.php b/src/View/Helper/BootstrapHelper.php index f814116..122ca7c 100644 --- a/src/View/Helper/BootstrapHelper.php +++ b/src/View/Helper/BootstrapHelper.php @@ -450,7 +450,7 @@ class BootstrapGeneric return sprintf('%s="%s"', h($key), (!empty($escape) ? h($value) : $value)); } return ''; - } else if (empty($value)) { + } else if (!isset($value)) { return ''; } return sprintf('%s="%s"', h($key), (!empty($escape) ? h($value) : $value));