mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-02 10:03:49 +00:00
Add a try catch to the menu include loop.
This commit is contained in:
@@ -54,8 +54,14 @@
|
||||
$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_menu.php");
|
||||
$x=0;
|
||||
foreach ($config_list as &$config_path) {
|
||||
include($config_path);
|
||||
$x++;
|
||||
try {
|
||||
include($config_path);
|
||||
$x++;
|
||||
}
|
||||
catch (Exception $e) {
|
||||
echo 'exception caught: ' . $e->getMessage() . "\n";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
//begin the transaction
|
||||
|
||||
Reference in New Issue
Block a user