From 45fe16f2bfbe95069118ca82222113023754db0e Mon Sep 17 00:00:00 2001 From: niekt0 Date: Wed, 28 Sep 2011 01:47:26 +0200 Subject: [PATCH] still cleaning warnings --- .../node_methodz/function.get_node_commanders.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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']); } -- 2.30.2