From 01b6441f6d5dab0bca7e42f65dbf5669542dc9a1 Mon Sep 17 00:00:00 2001 From: wangxuepeng Date: Sat, 25 Nov 2023 17:16:42 +0800 Subject: [PATCH] * Fixed the error of screenModel::processXLabel. --- module/screen/model.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; }