diff options
Diffstat (limited to 'src/usr/local/www/classes/Form/Section.class.php')
-rw-r--r-- | src/usr/local/www/classes/Form/Section.class.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr/local/www/classes/Form/Section.class.php b/src/usr/local/www/classes/Form/Section.class.php index 631562c..f1c00c9 100644 --- a/src/usr/local/www/classes/Form/Section.class.php +++ b/src/usr/local/www/classes/Form/Section.class.php @@ -92,7 +92,12 @@ class Form_Section extends Form_Element public function __toString() { $element = parent::__toString(); - $title = htmlspecialchars(gettext($this->_title)); + + if (!empty(trim($this->_title)) || is_numeric($this->_title)) + $title = htmlspecialchars(gettext($this->_title)); + else + $title = ''; + $body = implode('', $this->_groups); $hdricon = ""; $bodyclass = '<div class="panel-body">'; |