allow radius pool

This commit is contained in:
Ibnu Maksum
2023-10-04 11:25:58 +07:00
parent ce01771800
commit efc0ba93b6
3 changed files with 10 additions and 2 deletions

View File

@ -16,7 +16,12 @@ $ui->assign('_admin', $admin);
switch ($action) {
case 'pool':
$routers = _get('routers');
$d = ORM::for_table('tbl_pool')->where('routers', $routers)->find_many();
if(empty($routers)){
$d = ORM::for_table('tbl_pool')->find_many();
}else{
$d = ORM::for_table('tbl_pool')->where('routers', $routers)->find_many();
}
$ui->assign('routers', $routers);
$ui->assign('d', $d);
$ui->display('autoload-pool.tpl');
break;