From: Andrew Dolgov Date: Sat, 7 Feb 2009 08:19:49 +0000 (+0300) Subject: update_local_feedlist_counters: return unless local DB handle exists X-Git-Tag: 1.3.1~56 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b7dbf528f32349d604f141e19d8c5990684e8bc3;p=tt-rss.git update_local_feedlist_counters: return unless local DB handle exists --- diff --git a/offline.js b/offline.js index 7910bba8..f9ccf299 100644 --- a/offline.js +++ b/offline.js @@ -806,7 +806,7 @@ function set_feedlist_counter(id, ctr, is_cat) { function update_local_feedlist_counters() { try { - if (!offline_mode) return; + if (!offline_mode || !db) return; /* var rs = db.execute("SELECT feeds.id,COUNT(articles.id) "+ "FROM feeds LEFT JOIN articles ON (feed_id = feeds.id) "+