Merge branch 'develop' of gitee.com:karson/fastadmin into develop

pull/382/head
Karson 2022-01-20 15:48:43 +08:00
commit d2d6648d9c
1 changed files with 2 additions and 2 deletions

View File

@ -112,10 +112,10 @@ class Tree
if (!isset($value['id'])) {
continue;
}
if ($value[$this->pidname] == $myid) {
if ((string)$value[$this->pidname] == (string)$myid) {
$newarr[] = $value;
$newarr = array_merge($newarr, $this->getChildren($value['id']));
} elseif ($withself && $value['id'] == $myid) {
} elseif ($withself && (string)$value['id'] == (string)$myid) {
$newarr[] = $value;
}
}