Fix #1798 TypeError when extra var stored as array is treated as string

This commit is contained in:
Kijin Sung 2021-10-08 01:38:15 +09:00
parent cb16e7a293
commit 4a8464ad72

View file

@ -175,11 +175,11 @@ class memberView extends member
}
elseif($formInfo->type=='date')
{
$item->value = zdate($orgValue, "Y-m-d");
$item->value = zdate(is_array($orgValue) ? array_first($orgValue) : $orgValue, 'Y-m-d');
}
else
{
$item->value = nl2br($orgValue);
$item->value = nl2br(is_array($orgValue) ? array_first($orgValue) : $orgValue);
}
}