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 committed by Daniël Klabbers
parent c5e3e26d07
commit 17dfb58590

View File

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