Fix Dashboard::setDefaultPane() activating an inexistent pane

This commit is contained in:
Eric Lippmann 2015-12-22 14:54:33 +01:00
parent 405b768dc2
commit 25d8215b95
1 changed files with 3 additions and 1 deletions

View File

@ -363,7 +363,9 @@ class Dashboard extends AbstractWidget
{ {
reset($this->panes); reset($this->panes);
$active = key($this->panes); $active = key($this->panes);
if ($active !== null) {
$this->activate($active); $this->activate($active);
}
return $active; return $active;
} }