summaryrefslogtreecommitdiff
path: root/offline.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-02-15 23:44:23 +0300
committerAndrew Dolgov <[email protected]>2009-02-15 23:44:23 +0300
commit4bb93547ecd37fa7ee6c156a998c7d1c5e41cb41 (patch)
tree07a4a2ecdcf0a1c382565786242eb8f67b397cf6 /offline.js
parent46b84d2998e7e30722592373b8d3677f345e0963 (diff)
offline: only force stage to 1 when cidt/cidb are present when stage != 0
Diffstat (limited to 'offline.js')
-rw-r--r--offline.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/offline.js b/offline.js
index 3b3695fab..9933e3d00 100644
--- a/offline.js
+++ b/offline.js
@@ -841,7 +841,7 @@ function offline_download_parse(stage, transport) {
function update_offline_data(stage) {
try {
- if (!stage) stage = 0;
+ if (stage) stage = 0;
if (!db || offline_mode || getInitParam("offline_enabled") != "1") return;
@@ -858,7 +858,7 @@ function update_offline_data(stage) {
query = query + "&cidt=" + offline_dl_max_id;
query = query + "&cidb=" + offline_dl_min_id;
- stage = 1;
+ if (stage > 1) stage = 1;
}
rs.close();