From 9a49be8ae4b473c8c06c8071fa3a295587a2e239 Mon Sep 17 00:00:00 2001 From: zhaoke Date: Thu, 27 Apr 2023 09:29:23 +0800 Subject: [PATCH] * Fix bug #34874. --- module/testcase/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/testcase/model.php b/module/testcase/model.php index ae8d2131ea..8e76a0a221 100644 --- a/module/testcase/model.php +++ b/module/testcase/model.php @@ -4567,7 +4567,7 @@ class testcaseModel extends model { // Only entry with this key // Test if tags of this type should always be arrays, no matter the element count - $tagsArray[$childTagName] = in_array($childTagName, $options['alwaysArray'], true) || !$options['autoArray'] ? [$childProperties] : $childProperties; + $tagsArray[$childTagName] = in_array($childTagName, $options['alwaysArray'], true) || !$options['autoArray'] ? array($childProperties) : $childProperties; } elseif(is_array($tagsArray[$childTagName]) && array_keys($tagsArray[$childTagName]) === range(0, count($tagsArray[$childTagName]) - 1)) {