From: niekt0 Date: Tue, 27 Sep 2011 23:47:26 +0000 (+0200) Subject: still cleaning warnings X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=45fe16f2bfbe95069118ca82222113023754db0e;p=mirrors%2FKyberia-bloodline.git still cleaning warnings --- 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']); }