diff options
Diffstat (limited to 'inc/Form/Element.php')
-rw-r--r-- | inc/Form/Element.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/Form/Element.php b/inc/Form/Element.php index 6f23e2631..3fd170a80 100644 --- a/inc/Form/Element.php +++ b/inc/Form/Element.php @@ -101,6 +101,7 @@ abstract class Element { $classes = explode(' ', $this->attr('class')); $classes[] = $class; $classes = array_unique($classes); + $classes = array_filter($classes); $this->attr('class', join(' ', $classes)); return $this; } |