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:
frytimo
2025-01-24 19:05:37 -04:00
committed by GitHub
parent 965b245794
commit da1da92d01
2 changed files with 10 additions and 6 deletions

View File

@@ -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 ";