Built-in Dashboard doesn't work after $hide_inaccessible_menu_items in config.php...
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 21 May 2017 16:19:30 +0000 (18:19 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 21 May 2017 16:19:30 +0000 (18:19 +0200)
includes/dashboard.inc

index 493a70730078256be109412b7f56bf1f946142ae..21b1377f96acaabd785a4d239945824f3ea3b1b7 100644 (file)
@@ -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