$commanders[$set->getString('node_permission')].=$set->getString('login').";";
}
- $smarty->assign('get_node_commanders',$commanders);
- $smarty->assign('masters',$commanders['master']);
- $smarty->assign('ops',$commanders['op']);
- $smarty->assign('access',$commanders['access']);
- $smarty->assign('bans',$commanders['ban']);
- $smarty->assign('silence',$commanders['silence']);
- $smarty->assign('execute',$commanders['execute']);
+ $smarty->assign('get_node_commanders',empty($commanders) ? "" : $commanders);
+ $smarty->assign('masters',empty($commanders['master']) ? "" : $commanders['master']);
+ $smarty->assign('ops',empty($commanders['op']) ? "" : $commanders['op']);
+ $smarty->assign('access',empty($commanders['access']) ? "" : $commanders['access']);
+ $smarty->assign('bans',empty($commanders['ban']) ? "" : $commanders['ban']);
+ $smarty->assign('silence',empty($commanders['silence']) ? "" : $commanders['silence']);
+ $smarty->assign('execute',empty($commanders['execute']) ? "" : $commanders['execute']);
}