mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-11 11:08:45 +00:00
fix missing variable in default template (#7222)
When 'dev' or 'all' error level is set in the config.conf file, the menu will fail to expand or contract. This commit adds the missing variable causing a PHP warning responsible for the behavior.
This commit is contained in:
@@ -33,6 +33,9 @@
|
||||
session_start();
|
||||
}
|
||||
|
||||
//connect to the database if not initialized
|
||||
$database = database::new();
|
||||
|
||||
//set the domains session
|
||||
if (!isset($_SESSION['domains'])) {
|
||||
$domain = new domains();
|
||||
@@ -81,11 +84,6 @@
|
||||
$content = '';
|
||||
}
|
||||
|
||||
//connect to the database if not initialized
|
||||
if (!($database instanceof database)) {
|
||||
$database = new database();
|
||||
}
|
||||
|
||||
//get the parent id
|
||||
$sql = "select menu_item_parent_uuid from v_menu_items ";
|
||||
$sql .= "where menu_uuid = :menu_uuid ";
|
||||
|
||||
Reference in New Issue
Block a user