dont store or overwrite with empty labels

This commit is contained in:
Ralf Becker 2019-03-19 17:31:20 +01:00
parent c6c40022df
commit 15fc8323e6

View File

@ -1360,7 +1360,7 @@ abstract class admin_cmd
if (!empty($widget->id)) if (!empty($widget->id))
{ {
if (!empty($widget->attrs['label'])) $label = $widget->attrs['label']; if (!empty($widget->attrs['label'])) $label = $widget->attrs['label'];
$labels[$widget->id] = $label; if (!empty($label)) $labels[$widget->id] = $label;
$label = null; $label = null;
} }
break; break;