]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix not found error for tags & labels
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 15 Jun 2006 03:01:28 +0000 (04:01 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 15 Jun 2006 03:01:28 +0000 (04:01 +0100)
backend.php

index b77575723ab7d923fc0eea98e0f695132e55cfb9..ac53977e4ceda42d90266b056e5248024fe5a80a 100644 (file)
                        }
                }
 
-               $result = db_query($link,
-                       "SELECT id FROM ttrss_feeds WHERE id = '$feed' LIMIT 1");
+               if ($feed_id > 0) {             
+                       $result = db_query($link,
+                               "SELECT id FROM ttrss_feeds WHERE id = '$feed' LIMIT 1");
                
-               if (db_num_rows($result) == 0) {
-                       print "<div align='center'>
-                               Could not display feed: feed not found.</div>";
-                       return;
+                       if (db_num_rows($result) == 0) {
+                               print "<div align='center'>
+                                       Feed not found.</div>";
+                               return;
+                       }
                }
 
                if (preg_match("/^-?[0-9][0-9]*$/", $feed) != false) {