check radius client if radius_enable

This commit is contained in:
Ibnu Maksum
2023-10-27 08:57:57 +07:00
parent 88a3e2d205
commit 90cfc3e6d9
2 changed files with 10 additions and 2 deletions

View File

@ -23,7 +23,7 @@ switch ($action) {
$logo = 'system/uploads/logo.default.png';
}
$ui->assign('logo', $logo);
if (empty($_c['radius_client'])) {
if ( $_c['radius_enable'] && empty($_c['radius_client'])) {
try {
$_c['radius_client'] = Radius::getClient();
$ui->assign('_c', $_c);