From 87f14cee3729bd851d74c4949c806aee27c2a1ed Mon Sep 17 00:00:00 2001 From: Lufei Date: Tue, 31 Oct 2023 13:35:48 +0800 Subject: [PATCH] * Fix syntax errors. --- module/my/ui/preference.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/my/ui/preference.html.php b/module/my/ui/preference.html.php index e10ae07f5b..0473346459 100644 --- a/module/my/ui/preference.html.php +++ b/module/my/ui/preference.html.php @@ -49,8 +49,8 @@ foreach(array('program', 'product', 'project', 'execution') as $objectType) { list($title, $desc) = explode('/', $label); - $contentHtml = "
{$title}
{$desc}
"; - $$itemsName = array(array('value' => $value, 'text' => $title, 'content' => array('html' => $contentHtml, 'class' => 'flex w-full border no-wrap pl-1 py-4 preference-box'))); + $contentHtml = "
{$title}
{$desc}
"; + ${$itemsName}[] = array('value' => $value, 'text' => $title, 'content' => array('html' => $contentHtml, 'class' => 'flex w-full border no-wrap pl-1 py-4 preference-box')); } }