test for veed validity before displaying it in the browser
This commit is contained in:
parent
ec800fe1f2
commit
040ed8c67d
|
@ -182,33 +182,36 @@
|
||||||
|
|
||||||
$details = db_fetch_assoc($det_result);
|
$details = db_fetch_assoc($det_result);
|
||||||
|
|
||||||
$icon_file = ICONS_DIR . "/" . $details["id"] . ".ico";
|
if ($details) {
|
||||||
|
|
||||||
if (file_exists($icon_file) && filesize($icon_file) > 0) {
|
$icon_file = ICONS_DIR . "/" . $details["id"] . ".ico";
|
||||||
$feed_icon = "<img class=\"tinyFeedIcon\" src=\"" . ICONS_URL .
|
|
||||||
"/".$details["id"].".ico\">";
|
if (file_exists($icon_file) && filesize($icon_file) > 0) {
|
||||||
} else {
|
$feed_icon = "<img class=\"tinyFeedIcon\" src=\"" . ICONS_URL .
|
||||||
$feed_icon = "<img class=\"tinyFeedIcon\" src=\"images/blank_icon.gif\">";
|
"/".$details["id"].".ico\">";
|
||||||
|
} else {
|
||||||
|
$feed_icon = "<img class=\"tinyFeedIcon\" src=\"images/blank_icon.gif\">";
|
||||||
|
}
|
||||||
|
|
||||||
|
$check_box = "<input onclick='toggleSelectFBListRow(this)' class='feedBrowseCB'
|
||||||
|
type=\"checkbox\" id=\"FBCHK-" . $details["id"] . "\">";
|
||||||
|
|
||||||
|
$class = ($feedctr % 2) ? "even" : "odd";
|
||||||
|
|
||||||
|
print "<li class='$class' id=\"FBROW-".$details["id"]."\">$check_box".
|
||||||
|
"$feed_icon ";
|
||||||
|
|
||||||
|
print "<a href=\"javascript:browserToggleExpand('".$details["id"]."')\">" .
|
||||||
|
$details["title"] ."</a> " .
|
||||||
|
"<span class='subscribers'>($subscribers)</span>";
|
||||||
|
|
||||||
|
print "<div class=\"browserDetails\" style=\"display : none\" id=\"BRDET-" . $details["id"] . "\">";
|
||||||
|
print "</div>";
|
||||||
|
|
||||||
|
print "</li>";
|
||||||
|
|
||||||
|
++$feedctr;
|
||||||
}
|
}
|
||||||
|
|
||||||
$check_box = "<input onclick='toggleSelectFBListRow(this)' class='feedBrowseCB'
|
|
||||||
type=\"checkbox\" id=\"FBCHK-" . $details["id"] . "\">";
|
|
||||||
|
|
||||||
$class = ($feedctr % 2) ? "even" : "odd";
|
|
||||||
|
|
||||||
print "<li class='$class' id=\"FBROW-".$details["id"]."\">$check_box".
|
|
||||||
"$feed_icon ";
|
|
||||||
|
|
||||||
print "<a href=\"javascript:browserToggleExpand('".$details["id"]."')\">" .
|
|
||||||
$details["title"] ."</a> " .
|
|
||||||
"<span class='subscribers'>($subscribers)</span>";
|
|
||||||
|
|
||||||
print "<div class=\"browserDetails\" style=\"display : none\" id=\"BRDET-" . $details["id"] . "\">";
|
|
||||||
print "</div>";
|
|
||||||
|
|
||||||
print "</li>";
|
|
||||||
|
|
||||||
++$feedctr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</ul>";
|
print "</ul>";
|
||||||
|
|
Loading…
Reference in New Issue