Update menu.php

This commit is contained in:
FusionPBX
2020-03-02 23:47:17 -07:00
committed by GitHub
parent e211d7ae3a
commit 884fee7275

View File

@@ -359,7 +359,7 @@ if (!class_exists('menu')) {
$config_list = glob($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/*/*/app_menu.php");
$x = 0;
if (is_array($config_list)) {
foreach ($config_list as &$config_path) {
foreach ($config_list as $config_path) {
$app_path = dirname($config_path);
$app_path = preg_replace('/\A.*(\/.*\/.*)\z/', '$1', $app_path);
$y = 0;