diff --git a/modules/backend/classes/FormTabs.php b/modules/backend/classes/FormTabs.php index a4611dddd..6ef861255 100644 --- a/modules/backend/classes/FormTabs.php +++ b/modules/backend/classes/FormTabs.php @@ -118,7 +118,10 @@ class FormTabs implements IteratorAggregate, ArrayAccess if ($fieldName == $name) { unset($this->fields[$tab][$fieldName]); - if (!sizeof($this->fields[$tab])) { + /* + * Remove empty tabs from collection + */ + if (!count($this->fields[$tab])) { unset($this->fields[$tab]); }