chg: [helper:bootstrap] Make sure to output the value even if it's a `0`

refacto/CRUDComponent
Sami Mokaddem 2023-02-27 11:13:40 +01:00
parent 26c038b25b
commit c8e5823393
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -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));