]> git.wh0rd.org Git - tt-rss.git/commitdiff
getFeedTitle: properly return title for tag vfeed
authorAndrew Dolgov <fox@bah.org.ru>
Wed, 29 Apr 2009 21:23:30 +0000 (01:23 +0400)
committerAndrew Dolgov <fox@bah.org.ru>
Wed, 29 Apr 2009 21:23:30 +0000 (01:23 +0400)
functions.php

index 4b80c5e0f5980101b23c47abf6b6c448f3555332..d9e1869a39be0b1ea538738b655f2ed7f7b87bb5 100644 (file)
                                return "Unknown feed ($id)";
                        }
                } else {
-                       return "getFeedTitle($id) failed";
+                       if (preg_match("/^-?[0-9][0-9]*$/", $id)) {
+                               return "getFeedTitle($id) failed";
+                       } else {
+                               return $id;
+                       }
                }
 
        }