diff --git a/library/Icinga/Common/Database.php b/library/Icinga/Common/Database.php index e39acfa0fd9..e600021cad6 100644 --- a/library/Icinga/Common/Database.php +++ b/library/Icinga/Common/Database.php @@ -64,7 +64,6 @@ protected function getDb() $insert->values(array_combine($insert->getColumns(), $values)); }); - } return $conn; diff --git a/library/Icinga/Web/Dashboard/Pane.php b/library/Icinga/Web/Dashboard/Pane.php index 4d5c924bfa9..8c94bfbece7 100644 --- a/library/Icinga/Web/Dashboard/Pane.php +++ b/library/Icinga/Web/Dashboard/Pane.php @@ -117,8 +117,7 @@ public function loadDashboardEntries(string $name = '') $this->addEntry($newDashlet); - if ( - Modules\DashletManager::isOrphaned($newDashlet) + if (Modules\DashletManager::isOrphaned($newDashlet) || ( $newDashlet->isModuleDashlet() && $dashlet->system_module_dashlet_id === null