diff --git a/src/core/siteplugins/providers/helper.ts b/src/core/siteplugins/providers/helper.ts index 4a0230413..0544efa54 100644 --- a/src/core/siteplugins/providers/helper.ts +++ b/src/core/siteplugins/providers/helper.ts @@ -664,7 +664,8 @@ export class CoreSitePluginsHelperProvider { const uniqueName = this.sitePluginsProvider.getHandlerUniqueName(plugin, handlerName), blockName = (handlerSchema.moodlecomponent || plugin.component).replace('block_', ''), - prefixedTitle = this.getPrefixedString(plugin.addon, handlerSchema.displaydata.title || 'pluginname'); + titleString = (handlerSchema.displaydata && handlerSchema.displaydata.title) ? handlerSchema.displaydata.title : 'pluginname', + prefixedTitle = this.getPrefixedString(plugin.addon, titleString); this.blockDelegate.registerHandler( new CoreSitePluginsBlockHandler(uniqueName, prefixedTitle, blockName, handlerSchema, initResult));