update_local_feedlist_counters: return unless local DB handle exists
This commit is contained in:
parent
6161d5cc87
commit
b7dbf528f3
1 changed files with 1 additions and 1 deletions
|
@ -806,7 +806,7 @@ function set_feedlist_counter(id, ctr, is_cat) {
|
||||||
|
|
||||||
function update_local_feedlist_counters() {
|
function update_local_feedlist_counters() {
|
||||||
try {
|
try {
|
||||||
if (!offline_mode) return;
|
if (!offline_mode || !db) return;
|
||||||
|
|
||||||
/* var rs = db.execute("SELECT feeds.id,COUNT(articles.id) "+
|
/* var rs = db.execute("SELECT feeds.id,COUNT(articles.id) "+
|
||||||
"FROM feeds LEFT JOIN articles ON (feed_id = feeds.id) "+
|
"FROM feeds LEFT JOIN articles ON (feed_id = feeds.id) "+
|
||||||
|
|
Loading…
Reference in a new issue