mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 22:04:25 +02:00
Fix expcetion when the dashboards folder is missing
This commit is contained in:
parent
480e357266
commit
4dda451c79
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user