From 89293ce74463a4dc7af2c3c63bc2891968e127d2 Mon Sep 17 00:00:00 2001 From: loviuz Date: Wed, 13 Jul 2022 22:39:47 +0200 Subject: [PATCH] Fix checkbox per PHP8.0 --- src/HTMLBuilder/Wrapper/HTMLWrapper.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/HTMLBuilder/Wrapper/HTMLWrapper.php b/src/HTMLBuilder/Wrapper/HTMLWrapper.php index 9970c7d4f..8af8f1d5f 100755 --- a/src/HTMLBuilder/Wrapper/HTMLWrapper.php +++ b/src/HTMLBuilder/Wrapper/HTMLWrapper.php @@ -29,9 +29,10 @@ class HTMLWrapper implements WrapperInterface public function before(&$values, &$extras) { $result = ''; + $extra_class = ''; if( $values['type']=='checkbox' ){ - $values['class'] .= ' checkbox-group'; + $extra_class = 'checkbox-group'; } // Valori particolari @@ -41,7 +42,7 @@ class HTMLWrapper implements WrapperInterface // Generazione dell'etichetta if (!empty($values['label'])) { $result .= ' -
+
'; }