mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +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 = [];
|
$files = [];
|
||||||
$dashboards = static::resolvePath('dashboards');
|
$dashboards = static::resolvePath('dashboards');
|
||||||
if ($handle = opendir($dashboards)) {
|
if ($handle = @opendir($dashboards)) {
|
||||||
while (false !== ($entry = readdir($handle))) {
|
while (false !== ($entry = readdir($handle))) {
|
||||||
if ($entry[0] === '.' || ! is_dir($dashboards . '/' . $entry)) {
|
if ($entry[0] === '.' || ! is_dir($dashboards . '/' . $entry)) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user