From: Joe Hunt Date: Sun, 21 May 2017 16:19:30 +0000 (+0200) Subject: Built-in Dashboard doesn't work after $hide_inaccessible_menu_items in config.php... X-Git-Tag: v2.4.2~19^2~4 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=93d7b68e2736d199b052c61d36deac23309b92f4 Built-in Dashboard doesn't work after $hide_inaccessible_menu_items in config.php is set 1 (and there are disabled apps). --- diff --git a/includes/dashboard.inc b/includes/dashboard.inc index 493a7073..21b1377f 100644 --- a/includes/dashboard.inc +++ b/includes/dashboard.inc @@ -15,7 +15,7 @@ function dashboard($sel_app) $selected_app = $sel_app; - if (!$_SESSION["wa_current_user"]->check_application_access($selected_app)) + if (is_object($sel_app) && !$_SESSION["wa_current_user"]->check_application_access($selected_app)) return; // first have a look through the directory, // and remove old temporary pdfs and pngs