forgot to check enabled router when showing offline router

This commit is contained in:
Ibnu Maksum
2024-08-30 13:53:13 +07:00
parent 8e2a40d670
commit ef0d19393f
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ if (file_exists($cacheMSfile) && time() - filemtime($cacheMSfile) < 43200) {
}
if ($config['router_check']) {
$routeroffs = ORM::for_table('tbl_routers')->selects(['id', 'name', 'last_seen'])->where('status', 'Offline')->order_by_desc('name')->find_array();
$routeroffs = ORM::for_table('tbl_routers')->selects(['id', 'name', 'last_seen'])->where('status', 'Offline')->where('enabled', '1')->order_by_desc('name')->find_array();
$ui->assign('routeroffs', $routeroffs);
}