mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 10:57:40 +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();
|
$tabs = $this->dashboard->getTabs();
|
||||||
$activeHome = $this->dashboard->getActiveHome();
|
$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());
|
$tabs->extend(new DashboardSettings());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user