mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 09:45:03 +02:00
commit
19ea56df3f
1 changed files with 3 additions and 2 deletions
5
init.php
5
init.php
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue