Fix expcetion when the dashboards folder is missing

This commit is contained in:
Eric Lippmann 2016-01-28 12:50:13 +01:00
parent 480e357266
commit 4dda451c79

View File

@ -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;