diff options
author | Andrew Dolgov <[email protected]> | 2009-02-07 11:19:49 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-02-07 11:19:49 +0300 |
commit | b7dbf528f32349d604f141e19d8c5990684e8bc3 (patch) | |
tree | 9e024dbc7dd29969c4636b147e263f6baaa1938d | |
parent | 6161d5cc87503a750ec5c1c46008f5d55a8c1b17 (diff) |
update_local_feedlist_counters: return unless local DB handle exists
-rw-r--r-- | offline.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) "+ |