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);
|
reset($this->panes);
|
||||||
$active = key($this->panes);
|
$active = key($this->panes);
|
||||||
$this->activate($active);
|
if ($active !== null) {
|
||||||
|
$this->activate($active);
|
||||||
|
}
|
||||||
return $active;
|
return $active;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue