diff --git a/module/screen/model.php b/module/screen/model.php index ef68740609..f2fd444ca4 100755 --- a/module/screen/model.php +++ b/module/screen/model.php @@ -759,10 +759,8 @@ class screenModel extends model public function processXLabel(array $xLabels, string $type, string $object, string $field): array { $options = $this->getSysOptions($type, $object, $field); - foreach($xLabels as $label) - { - $xLabelValues[$label] = isset($options[$label]) ? $options[$label] : $label; - } + $xLabelValues = array(); + foreach($xLabels as $label) $xLabelValues[$label] = isset($options[$label]) ? $options[$label] : $label; return $xLabelValues; }