|
@@ -36,7 +36,7 @@ layout: default
|
|
// icon if there is one
|
|
// icon if there is one
|
|
var icon = rules[i]["icon"];
|
|
var icon = rules[i]["icon"];
|
|
var iconHTML = "";
|
|
var iconHTML = "";
|
|
- if (icon != null) {
|
|
|
|
|
|
+ if (icon != null && icon != "" && icon != undefined) {
|
|
iconHTML = "<span class='icon'><img src='" + icon + "' /></span>";
|
|
iconHTML = "<span class='icon'><img src='" + icon + "' /></span>";
|
|
}
|
|
}
|
|
|
|
|
|
@@ -47,7 +47,7 @@ layout: default
|
|
"<a href='/create/?r=" + rules[i]["rule_id"] + "'>" + iconHTML +
|
|
"<a href='/create/?r=" + rules[i]["rule_id"] + "'>" + iconHTML +
|
|
title + "</a></h2>\n";
|
|
title + "</a></h2>\n";
|
|
// then the authors
|
|
// then the authors
|
|
- var author = rules[i]["creatorName"];
|
|
|
|
|
|
+ var author = rules[i]["creator_name"];
|
|
if (author != null) {
|
|
if (author != null) {
|
|
libHTML += "<div class='library-rule-author'>" + author + "</div>";
|
|
libHTML += "<div class='library-rule-author'>" + author + "</div>";
|
|
}
|
|
}
|