From 73aa663b253bdf5880767ffdae01d561a8a637e5 Mon Sep 17 00:00:00 2001 From: ABDALRAHMAN MOLOOD Date: Thu, 15 Aug 2024 18:46:44 +0300 Subject: [PATCH] Update init.php - replace ismysqlRadius with isTableExist , to use it any many diffrent position. --- init.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.php b/init.php index c33acdfc..1d03d95e 100644 --- a/init.php +++ b/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; } } +