diff --git a/libraries/legacy/form/field/componentlayout.php b/libraries/legacy/form/field/componentlayout.php index cc68baa1f882b..70ac4a0b63c89 100644 --- a/libraries/legacy/form/field/componentlayout.php +++ b/libraries/legacy/form/field/componentlayout.php @@ -115,7 +115,7 @@ protected function getInput() $groups = array(); // Add a Use Global option if useglobal="true" in XML file - if ($this->element['useglobal'] === 'true') + if ((string) $this->element['useglobal'] === 'true') { $groups[JText::_('JOPTION_FROM_STANDARD')]['items'][] = JHtml::_('select.option', '', JText::_('JGLOBAL_USE_GLOBAL')); }