mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Only call the scripts class if its installed.
This commit is contained in:
@@ -332,8 +332,10 @@
|
||||
}
|
||||
|
||||
//update config.lua
|
||||
$obj = new scripts;
|
||||
$obj->write_config();
|
||||
if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/scripts/resources/classes/scripts.php')) {
|
||||
$obj = new scripts;
|
||||
$obj->write_config();
|
||||
}
|
||||
|
||||
//clear the session variables
|
||||
unset($_SESSION['domain']);
|
||||
|
||||
Reference in New Issue
Block a user