From 594ed63f2a886c5d372a67d1c45410c15575fb91 Mon Sep 17 00:00:00 2001 From: orbiter Date: Sat, 16 Feb 2013 20:33:27 +0100 Subject: [PATCH] fixed interactive search which caused an error if pubDate is not present in a search result --- htroot/js/yacyinteractive.js | 1 + 1 file changed, 1 insertion(+) diff --git a/htroot/js/yacyinteractive.js b/htroot/js/yacyinteractive.js index fa75b484fe..2f8b0a5ce9 100644 --- a/htroot/js/yacyinteractive.js +++ b/htroot/js/yacyinteractive.js @@ -204,6 +204,7 @@ function resultLine(type, item, linenumber) { if (title == "") title = path; if (title.length >= 60) title = title.substring(0, 28) + "..." + title.substring(title.length - 29); pd = item.pubDate; + if (pd == undefined) pd = ""; if (pd.substring(pd.length - 6) == " +0000") pd = pd.substring(0, pd.length - 6); if (pd.substring(pd.length - 9) == " 00:00:00") pd = pd.substring(0, pd.length - 9); if (pd.substring(pd.length - 5) == " 2010") pd = pd.substring(0, pd.length - 5);