diff options
author | Andrew Dolgov <[email protected]> | 2005-11-01 08:47:03 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-11-01 08:47:03 +0100 |
commit | ab3d0b9926f469540ac3d414b953a595aa5fec3e (patch) | |
tree | 92803a123309cc346219c01d2f6f3af6ae54d455 /backend.php | |
parent | f5a50b25d6d023050ee7d8524bee1bdf7030057b (diff) |
store last feed update error in the database (SCHEMA UPDATED), display warning box in preferences on feed update error
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/backend.php b/backend.php index 8b8a90709..611b67b38 100644 --- a/backend.php +++ b/backend.php @@ -815,6 +815,27 @@ } } + $result = db_query($link, "SELECT id,title,feed_url,last_error + FROM ttrss_feeds WHERE last_error != ''"); + + if (db_num_rows($result) > 0) { + + print "<div class=\"warning\">"; + + print "<b>Feeds with update errors:</b>"; + + print "<ul class=\"nomarks\">"; + + while ($line = db_fetch_assoc($result)) { + print "<li>" . $line["title"] . " (" . $line["feed_url"] . "): " . + $line["last_error"]; + } + + print "</ul>"; + print "</div>"; + + } + print "<table class=\"prefAddFeed\"><tr> <td><input id=\"fadd_link\"></td> <td colspan=\"4\" align=\"right\"> |