Fix accessing method on null

This commit is contained in:
Yonas Habteab 2022-04-13 14:03:47 +02:00
parent 167d6c709c
commit 89b0b4db57

View File

@ -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());
}