mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Fix accessing method on null
This commit is contained in:
parent
167d6c709c
commit
89b0b4db57
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user