commit
19ea56df3f
5
init.php
5
init.php
@ -358,12 +358,13 @@ function displayMaintenanceMessage(): void
|
|||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
function isMysqlRadius()
|
function isTableExist($table)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$record = ORM::forTable('radacct', 'radius')->find_one();
|
$record = ORM::forTable($table)->find_one();
|
||||||
return $record !== false;
|
return $record !== false;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user