X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_node_commanders.php;fp=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_node_commanders.php;h=437c4ccf4f2e09e0336bfa1e88b8c6765c48d62e;hb=f344a9ec6dea3c7b483361ce4c681c191038adc1;hp=5cdb9020942c3687428105888f7e205fc8506043;hpb=4dbe228fe37a6606365f0f96cd26736972c56a28;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 5cdb902..437c4cc 100644 --- a/wwwroot/inc/smarty/node_methodz/function.get_node_commanders.php +++ b/wwwroot/inc/smarty/node_methodz/function.get_node_commanders.php @@ -1,12 +1,9 @@ query("select node_permission,users.login from node_access left join users on node_access.user_id=users.user_id where node_id='$node_id' and node_permission!='' order by node_permission"); - - while ($set->next()) { - $commanders[$set->getString('node_permission')].=$set->getString('login').";"; - } + + $commanders=nodes::getNodeCommanders($node_id); $smarty->assign('get_node_commanders',empty($commanders) ? "" : $commanders); $smarty->assign('masters',empty($commanders['master']) ? "" : $commanders['master']);