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:
committed by
Franz Liedke
parent
5451aac693
commit
4585002118
@@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
for (var i in modules) {
|
for (var i in modules) {
|
||||||
var module = System.get(modules[i]);
|
var module = System.get(modules[i]);
|
||||||
if (module.default) module.default(app);
|
if (module && module.default) module.default(app);
|
||||||
}
|
}
|
||||||
|
|
||||||
app.boot({!! json_encode($payload) !!});
|
app.boot({!! json_encode($payload) !!});
|
||||||
|
Reference in New Issue
Block a user