Karson 8 years ago
parent
commit
0a6fda7911
1 changed files with 1 additions and 1 deletions
  1. 1 1
      extend/fast/Tree.php

+ 1 - 1
extend/fast/Tree.php

@@ -355,7 +355,7 @@ class Tree
                     '@childlist' => $childlist,
                     '@url'       => $childdata || !isset($value['@url']) ? "javascript:;" : url($value['@url']),
                     '@caret'     => ($childdata && !$value['@badge'] ? '<i class="fa fa-angle-left"></i>' : ''),
-                    '@badge'     => $value['@badge'],
+                    '@badge'     => isset($value['@badge']) ? $value['@badge'] : '',
                     '@class'     => ($selected ? ' active' : '') . ($disabled ? ' disabled' : '') . ($childdata ? ' treeview' : ''),
                 );
                 $str .= strtr($nstr, $value);