mirror of
https://github.com/flarum/core.git
synced 2025-08-08 01:16:52 +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) {
|
||||
var module = System.get(modules[i]);
|
||||
if (module.default) module.default(app);
|
||||
if (module && module.default) module.default(app);
|
||||
}
|
||||
|
||||
app.boot({!! json_encode($payload) !!});
|
||||
|
Reference in New Issue
Block a user