From c2952a12392a693cb0c6f3b3771b822df3da3c58 Mon Sep 17 00:00:00 2001 From: Achim Ennenbach Date: Wed, 20 Mar 2019 18:49:11 +0100 Subject: [PATCH] fixes e_form::checkboxes() not displaying labels properly that contain a '=' character. Also overwrote any supplied options. Line endings should be Unix LF (was Windows CRLF after rebase master ?!) Another last try 3 ...? --- e107_handlers/form_handler.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 6807d4894..c0301fa0b 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -2576,8 +2576,12 @@ class e_form $c = vartrue($checked[$k]); } - - $text .= $this->checkbox($cname, $key, $c, $label); + /** + * Label overwrote the other supplied options (if any) + * and also failed in case it contained a "=" character + */ + $options['label'] = $label; + $text .= $this->checkbox($cname, $key, $c, $options); } // return print_a($checked,true);