From 93d7b68e2736d199b052c61d36deac23309b92f4 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sun, 21 May 2017 18:19:30 +0200 Subject: [PATCH] Built-in Dashboard doesn't work after $hide_inaccessible_menu_items in config.php is set 1 (and there are disabled apps). --- includes/dashboard.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2