Skip to content

Commit

Permalink
fixed interactive search which caused an error if pubDate is not present
Browse files Browse the repository at this point in the history
in a search result
  • Loading branch information
Orbiter committed Feb 16, 2013
1 parent efb6cf7 commit 594ed63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htroot/js/yacyinteractive.js
Expand Up @@ -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);
Expand Down

0 comments on commit 594ed63

Please sign in to comment.