mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Change the code in the menu to return immediately if the database object is not ready in this case its not ready until the install.php is finished.
This commit is contained in:
@@ -386,12 +386,11 @@
|
||||
//create the menu array
|
||||
function menu_array($sql, $menu_item_level) {
|
||||
|
||||
//get the database connnection return immediately if it doesn't exist
|
||||
if ($this->db) {
|
||||
$db = $this->db;
|
||||
}else {
|
||||
return;
|
||||
}
|
||||
//get the database connnection
|
||||
$db = $this->db;
|
||||
|
||||
//database ojbect does not exist return immediately
|
||||
if (!$db) { return; }
|
||||
|
||||
//if there are no groups then set the public group
|
||||
if (!isset($_SESSION['groups'])) {
|
||||
@@ -460,12 +459,11 @@
|
||||
//create the sub menus
|
||||
function menu_child_array($menu_item_level, $menu_item_uuid) {
|
||||
|
||||
//get the database connnection return immediately if it doesn't exist
|
||||
if ($this->db) {
|
||||
$db = $this->db;
|
||||
}else {
|
||||
return;
|
||||
}
|
||||
//get the database connnection
|
||||
$db = $this->db;
|
||||
|
||||
//database ojbect does not exist return immediately
|
||||
if (!$db) { return; }
|
||||
|
||||
//set the level
|
||||
$menu_item_level = $menu_item_level+1;
|
||||
|
||||
Reference in New Issue
Block a user