Fixed issue #46

This commit is contained in:
Jeremy Ruston
2012-10-28 20:51:18 +00:00
parent 46a1dd662c
commit 072c06b412
+6 -1
View File
@@ -22,7 +22,12 @@ exports.info = {
}; };
exports.getList = function(title) { exports.getList = function(title) {
return this.wiki.getTextReference(title,"").split("\n"); var text = this.wiki.getTextReference(title,"");
if(text && text.length > 0) {
return text.split("\n");
} else {
return [];
}
}; };
exports.saveList = function(title,list) { exports.saveList = function(title,list) {