diff --git a/offline.js b/offline.js index 7910bba81..f9ccf2998 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) "+