1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 09:26:34 +02:00

Prevent crash if extension loads an empty module

This commit is contained in:
Toby Zerner
2016-11-20 08:28:57 +10:30
committed by Franz Liedke
parent 5451aac693
commit 4585002118

View File

@@ -46,7 +46,7 @@
for (var i in modules) {
var module = System.get(modules[i]);
if (module.default) module.default(app);
if (module && module.default) module.default(app);
}
app.boot({!! json_encode($payload) !!});