From a3656a415f2e557014eef45a395ad19e10771ff5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 1 Dec 2006 07:26:05 +0100 Subject: tweak feed errors notification --- modules/pref-feeds.php | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) (limited to 'modules/pref-feeds.php') diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index af8fd0936..0572978dd 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -710,31 +710,16 @@ if ($quiet) return; -// print "

Edit Feeds

"; - - $result = db_query($link, "SELECT id,title,feed_url,last_error + $result = db_query($link, "SELECT COUNT(id) AS num_errors FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ".$_SESSION["uid"]); - if (db_num_rows($result) > 0) { - - print "
"; - -// print""; - - print " - Some feeds have update errors (click for details)"; - - print ""; - print "
"; + if ($num_errors > 0) { + print "Some feeds have update errors (click + for details)"; } $feed_search = db_escape_string($_GET["search"]); -- cgit v1.2.3