From 072c06b41273500b5859c13402b8eaddbf17a092 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sun, 28 Oct 2012 20:51:18 +0000 Subject: [PATCH] Fixed issue #46 --- core/modules/macros/navigator.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/modules/macros/navigator.js b/core/modules/macros/navigator.js index bb01b83b9..e0496d14d 100644 --- a/core/modules/macros/navigator.js +++ b/core/modules/macros/navigator.js @@ -22,7 +22,12 @@ exports.info = { }; 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) {