* Fix array type.

This commit is contained in:
zhujinyong
2022-05-24 09:15:44 +08:00
parent 7382fc1476
commit 632c0a569c
+8 -3
View File
@@ -515,10 +515,15 @@ class baseEntry
if(!isset($object->$key)) continue;
$pos = strpos($type, ']');
if($pos !== FALSE)
if($pos !== false)
{
$is_array = true;
$type = substr($type, $pos + 1);
$isArray = true;
$type = substr($type, $pos + 1);
}
else if(strpos($type, 'array') !== false)
{
$isArray = true;
$type = 'object';
}
/* Format value. */