]> git.wh0rd.org Git - tt-rss.git/commitdiff
view: set feed_id to 0 when it is undefined
authorAndrew Dolgov <fox@bah.org.ru>
Tue, 29 Dec 2009 15:03:16 +0000 (18:03 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Tue, 29 Dec 2009 15:03:16 +0000 (18:03 +0300)
viewfeed.js

index 22371cf9d84516eb84d33c9f03790920501d23da..d7962042170a25da00bba3f1f7e118649ef8a2cd 100644 (file)
@@ -457,9 +457,10 @@ function article_callback2(transport, id, feed_id) {
        }
 }
 
-function view(id, feed_id, skip_history) {
-       
+function view(id, feed_id) {
        try {
+               if (!feed_id) feed_id = 0;
+
                debug("loading article: " + id + "/" + feed_id);
 
                if (offline_mode) return view_offline(id, feed_id);