From 89b0b4db57a7045e3b9fb529e0b72848e3fa2722 Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Wed, 13 Apr 2022 14:03:47 +0200 Subject: [PATCH] Fix accessing method on null --- application/controllers/DashboardsController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/controllers/DashboardsController.php b/application/controllers/DashboardsController.php index 20e6d8af7..fc42fc06d 100644 --- a/application/controllers/DashboardsController.php +++ b/application/controllers/DashboardsController.php @@ -432,7 +432,8 @@ class DashboardsController extends CompatController { $tabs = $this->dashboard->getTabs(); $activeHome = $this->dashboard->getActiveHome(); - if (($activeHome && $activeHome->hasEntries()) || (! $activeHome->isDisabled() && count($this->dashboard->getEntries()) > 1)) { + if (($activeHome && $activeHome->hasEntries()) || + ($activeHome && ! $activeHome->isDisabled() && count($this->dashboard->getEntries()) > 1)) { $tabs->extend(new DashboardSettings()); }