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);
$active = key($this->panes);
$this->activate($active);
if ($active !== null) {
$this->activate($active);
}
return $active;
}