From: Andrew Dolgov Date: Tue, 29 Dec 2009 15:03:16 +0000 (+0300) Subject: view: set feed_id to 0 when it is undefined X-Git-Tag: 1.4.0~118 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=12e55b9017fe02824d52ef8639de11356ae2d4d4;p=tt-rss.git view: set feed_id to 0 when it is undefined --- diff --git a/viewfeed.js b/viewfeed.js index 22371cf9..d7962042 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -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);