mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-06-26 03:28:34 +02:00
allow radius pool
This commit is contained in:
parent
ce01771800
commit
efc0ba93b6
3 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue