X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_node_commanders.php;h=5cdb9020942c3687428105888f7e205fc8506043;hb=45fe16f2bfbe95069118ca82222113023754db0e;hp=a64e7b55b564f46e864b84d5c697b3bd19ca391b;hpb=5bd150af8a328f1a3aebfe05c2535da7bbed7667;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/node_methodz/function.get_node_commanders.php b/wwwroot/inc/smarty/node_methodz/function.get_node_commanders.php index a64e7b5..5cdb902 100644 --- a/wwwroot/inc/smarty/node_methodz/function.get_node_commanders.php +++ b/wwwroot/inc/smarty/node_methodz/function.get_node_commanders.php @@ -8,13 +8,13 @@ function smarty_function_get_node_commanders($brawco,&$smarty) { $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']); }