From 4dda451c79018550409e5f10a0ec0825bf3759ff Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 28 Jan 2016 12:50:13 +0100 Subject: [PATCH] Fix expcetion when the dashboards folder is missing --- library/Icinga/Legacy/DashboardConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Legacy/DashboardConfig.php b/library/Icinga/Legacy/DashboardConfig.php index ffe1eaf16..d97c48c09 100644 --- a/library/Icinga/Legacy/DashboardConfig.php +++ b/library/Icinga/Legacy/DashboardConfig.php @@ -57,7 +57,7 @@ class DashboardConfig extends Config { $files = []; $dashboards = static::resolvePath('dashboards'); - if ($handle = opendir($dashboards)) { + if ($handle = @opendir($dashboards)) { while (false !== ($entry = readdir($handle))) { if ($entry[0] === '.' || ! is_dir($dashboards . '/' . $entry)) { continue;