mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Fix Dashboard::setDefaultPane() activating an inexistent pane
This commit is contained in:
parent
405b768dc2
commit
25d8215b95
@ -363,7 +363,9 @@ class Dashboard extends AbstractWidget
|
||||
{
|
||||
reset($this->panes);
|
||||
$active = key($this->panes);
|
||||
$this->activate($active);
|
||||
if ($active !== null) {
|
||||
$this->activate($active);
|
||||
}
|
||||
return $active;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user