still cleaning warnings
authorniekt0 <niekt0@kyberia.cz>
Tue, 27 Sep 2011 23:47:26 +0000 (01:47 +0200)
committerniekt0 <niekt0@kyberia.cz>
Tue, 27 Sep 2011 23:47:26 +0000 (01:47 +0200)
wwwroot/inc/smarty/node_methodz/function.get_node_commanders.php

index a64e7b55b564f46e864b84d5c697b3bd19ca391b..5cdb9020942c3687428105888f7e205fc8506043 100644 (file)
@@ -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']);
 
 }
 
This page took 0.11277 seconds and 4 git commands to generate.