From 040ed8c67d7b911ad0a4a0ca15243f23f1173bc6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 20 Jan 2009 15:32:59 +0100 Subject: [PATCH] test for veed validity before displaying it in the browser --- modules/pref-feed-browser.php | 55 ++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/modules/pref-feed-browser.php b/modules/pref-feed-browser.php index 710d14a2c..01d350458 100644 --- a/modules/pref-feed-browser.php +++ b/modules/pref-feed-browser.php @@ -181,34 +181,37 @@ ORDER BY last_updated $order_fix LIMIT 1"); $details = db_fetch_assoc($det_result); + + if ($details) { - $icon_file = ICONS_DIR . "/" . $details["id"] . ".ico"; - - if (file_exists($icon_file) && filesize($icon_file) > 0) { - $feed_icon = ""; - } else { - $feed_icon = ""; + $icon_file = ICONS_DIR . "/" . $details["id"] . ".ico"; + + if (file_exists($icon_file) && filesize($icon_file) > 0) { + $feed_icon = ""; + } else { + $feed_icon = ""; + } + + $check_box = ""; + + $class = ($feedctr % 2) ? "even" : "odd"; + + print "
  • $check_box". + "$feed_icon "; + + print "" . + $details["title"] ." " . + "($subscribers)"; + + print "
    "; + print "
    "; + + print "
  • "; + + ++$feedctr; } - - $check_box = ""; - - $class = ($feedctr % 2) ? "even" : "odd"; - - print "
  • $check_box". - "$feed_icon "; - - print "" . - $details["title"] ." " . - "($subscribers)"; - - print "
    "; - print "
    "; - - print "
  • "; - - ++$feedctr; } print "";