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 = "
";
- $$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 = "";
+ ${$itemsName}[] = array('value' => $value, 'text' => $title, 'content' => array('html' => $contentHtml, 'class' => 'flex w-full border no-wrap pl-1 py-4 preference-box'));
}
}