]> git.wh0rd.org Git - tt-rss.git/commitdiff
move update error warning box
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 23 Nov 2005 09:50:37 +0000 (10:50 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 23 Nov 2005 09:50:37 +0000 (10:50 +0100)
backend.php

index 8987f627cf1399b6fdda00ea522ea761d7d1ecdf..fa032d0fb60a821711834ed9140cad212eed2485 100644 (file)
                        }
                }
 
-               $result = db_query($link, "SELECT id,title,feed_url,last_error 
-                       FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ".$_SESSION["uid"]);
-
-               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>";
-
-               }
-
                if (get_pref($link, 'ENABLE_FEED_CATS')) {
 
        //              print "<h3>Categories</h3>";
 
                print "<hr><p>";
 
+               $result = db_query($link, "SELECT id,title,feed_url,last_error 
+                       FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ".$_SESSION["uid"]);
+
+               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 "<div class=\"prefGenericAddBox\">
                        <input id=\"fadd_link\" size=\"40\">&nbsp;<input 
                                type=\"submit\" class=\"button\"