]> git.wh0rd.org - tt-rss.git/commitdiff
update_local_feedlist_counters: return unless local DB handle exists
authorAndrew Dolgov <fox@bah.org.ru>
Sat, 7 Feb 2009 08:19:49 +0000 (11:19 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Sat, 7 Feb 2009 08:19:49 +0000 (11:19 +0300)
offline.js

index 7910bba818fe91aba7dd61fd721b6ddcb210482d..f9ccf2998dfbd876bcd59ce87f6f0abb6a20fcbf 100644 (file)
@@ -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) "+