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