From 0f3fa3541195b35c8578e28d1926f4b1bc140802 Mon Sep 17 00:00:00 2001 From: Josen Date: Tue, 11 Aug 2015 20:15:11 +0800 Subject: [PATCH] fix role error --- controllers/manage/role.php | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/manage/role.php b/controllers/manage/role.php index f90564f..1a4965b 100644 --- a/controllers/manage/role.php +++ b/controllers/manage/role.php @@ -148,6 +148,7 @@ public function action($id,$node_id=NULL){ foreach($role_data as $vo){ $role_node_list[$vo->dirc][$vo->cont][$vo->func] = TRUE; } + if(!isset($role_node_list)) $role_node_list=NULL; $this->load->view('manage/role/action',array('role_id'=>$id,'node'=>$node_list,'rnl'=>$role_node_list)); }