diff --git a/library/Icinga/Web/Navigation/DashboardPane.php b/library/Icinga/Web/Navigation/DashboardPane.php index e598a0508..3bf6d0992 100644 --- a/library/Icinga/Web/Navigation/DashboardPane.php +++ b/library/Icinga/Web/Navigation/DashboardPane.php @@ -33,17 +33,17 @@ class DashboardPane extends NavigationItem /** * Return this pane's dashlets * - * @param bool $order Whether to order the dashlets first + * @param bool $ordered Whether to order the dashlets first * * @return array */ - public function getDashlets($order = true) + public function getDashlets($ordered = true) { if ($this->dashlets === null) { return array(); } - if ($order) { + if ($ordered) { ksort($this->dashlets); }