From 9a775341b31da4258b662a63b90a52fd14c9900a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Mon, 6 Mar 2017 11:41:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8F=9C=E5=8D=95=E7=BC=96?= =?UTF-8?q?=E8=BE=91bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Menu.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/admin/controller/Menu.php b/application/admin/controller/Menu.php index 97e60db71..5ec5e3507 100644 --- a/application/admin/controller/Menu.php +++ b/application/admin/controller/Menu.php @@ -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]); } }