Browse Source

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

Karson 3 years ago
parent
commit
d2d6648d9c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      extend/fast/Tree.php

+ 2 - 2
extend/fast/Tree.php

@@ -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;
             }
         }