diff --git a/core/modules/filters/plugintiddlers.js b/core/modules/filters/plugintiddlers.js index 9845e8ce8..abb20f8f9 100644 --- a/core/modules/filters/plugintiddlers.js +++ b/core/modules/filters/plugintiddlers.js @@ -19,7 +19,7 @@ exports.plugintiddlers = function(source,operator,options) { var results = []; source(function(tiddler,title) { var pluginInfo = options.wiki.getPluginInfo(title) || options.wiki.getTiddlerData(title,{tiddlers:[]}); - if(pluginInfo) { + if(pluginInfo && pluginInfo.tiddlers) { $tw.utils.each(pluginInfo.tiddlers,function(fields,title) { results.push(title); }); diff --git a/core/modules/wiki.js b/core/modules/wiki.js index 1f4bed260..e9df6b68c 100755 --- a/core/modules/wiki.js +++ b/core/modules/wiki.js @@ -570,7 +570,7 @@ exports.sortByList = function(array,listTitle) { exports.getSubTiddler = function(title,subTiddlerTitle) { var bundleInfo = this.getPluginInfo(title) || this.getTiddlerData(title); - if(bundleInfo) { + if(bundleInfo && bundleInfo.tiddlers) { var subTiddler = bundleInfo.tiddlers[subTiddlerTitle]; if(subTiddler) { return new $tw.Tiddler(subTiddler);