Merge pull request #254 from amolood/patch-3

Update init.php
This commit is contained in:
iBNu Maksum
2024-08-16 11:17:44 +07:00
committed by GitHub

View File

@ -358,12 +358,13 @@ function displayMaintenanceMessage(): void
die();
}
function isMysqlRadius()
function isTableExist($table)
{
try {
$record = ORM::forTable('radacct', 'radius')->find_one();
$record = ORM::forTable($table)->find_one();
return $record !== false;
} catch (Exception $e) {
return false;
}
}