Skip to content

Commit

Permalink
Fix Dashboard::setDefaultPane() activating an inexistent pane
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Dec 22, 2015
1 parent 405b768 commit 25d8215
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/Icinga/Web/Widget/Dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,9 @@ private function setDefaultPane()
{
reset($this->panes);
$active = key($this->panes);
$this->activate($active);
if ($active !== null) {
$this->activate($active);
}
return $active;
}

Expand Down

0 comments on commit 25d8215

Please sign in to comment.