From 25d8215b95a7dc519c9e352f48cbaa796a81cf23 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 22 Dec 2015 14:54:33 +0100 Subject: [PATCH] Fix Dashboard::setDefaultPane() activating an inexistent pane --- library/Icinga/Web/Widget/Dashboard.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Web/Widget/Dashboard.php b/library/Icinga/Web/Widget/Dashboard.php index 0cd42e7d9..fa246108a 100644 --- a/library/Icinga/Web/Widget/Dashboard.php +++ b/library/Icinga/Web/Widget/Dashboard.php @@ -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; }