summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-01-22 08:21:24 -0200
committerRenato Botelho <renato@netgate.com>2016-01-22 08:21:24 -0200
commit9c29a65b3df3a81aed2fe1ee64daad5458934760 (patch)
treee5341574d8a1daacb33acd30710e62f97200b035
parentc6625b3a2c98a06ce53512b7abc78db4c3d0789a (diff)
parente42fcbd04e01c92853a28aa64bdd61729de12db0 (diff)
downloadpfsense-9c29a65b3df3a81aed2fe1ee64daad5458934760.zip
pfsense-9c29a65b3df3a81aed2fe1ee64daad5458934760.tar.gz
Merge pull request #2503 from NOYB/Form_Group_-_Empty_Title_GetText
-rw-r--r--src/usr/local/www/classes/Form/Group.class.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/local/www/classes/Form/Group.class.php b/src/usr/local/www/classes/Form/Group.class.php
index e1ddaac..ce11969 100644
--- a/src/usr/local/www/classes/Form/Group.class.php
+++ b/src/usr/local/www/classes/Form/Group.class.php
@@ -148,7 +148,9 @@ EOT;
$label = new Form_Element('label', false, ['for' => $target]);
$label->addClass('col-sm-'.Form::LABEL_WIDTH, 'control-label');
- $title = htmlspecialchars(gettext($this->_title));
+ if (!empty(trim($this->_title)) || is_numeric($this->_title)) {
+ $title = htmlspecialchars(gettext($this->_title));
+ }
return <<<EOT
{$element}
OpenPOWER on IntegriCloud