修复菜单编辑bug

This commit is contained in:
邹景立 2017-03-06 11:41:38 +08:00
parent e251d9500e
commit 9a775341b3

View File

@ -98,8 +98,8 @@ class Menu extends BasicAdmin {
// 读取系统功能节点
$nodes = Node::getNodeTree(APP_PATH);
$denyAll = Db::name('SystemNode')->where('is_menu', '0')->column('node');
foreach ($nodes as $key => $vo) {
if (in_array($vo, $denyAll)) {
foreach ($nodes as $key => $_vo) {
if (in_array($_vo, $denyAll)) {
unset($nodes[$key]);
}
}