1
0
mirror of https://github.com/flarum/core.git synced 2025-07-28 04:00:40 +02:00

Don't fail when extend.php doesn't return an array

Refs #1607.
This commit is contained in:
Franz Liedke
2019-08-16 12:29:31 +02:00
parent 77fff9fde8
commit 689d767f82

View File

@@ -63,6 +63,12 @@ class Site
return [];
}
return array_flatten(require $extenderFile);
$extenders = require $extenderFile;
if (! is_array($extenders)) {
return [];
}
return array_flatten($extenders);
}
}