1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-03 06:59:14 +00:00

offline: only force stage to 1 when cidt/cidb are present when stage != 0

This commit is contained in:
Andrew Dolgov
2009-02-15 23:44:23 +03:00
parent 46b84d2998
commit 4bb93547ec

View File

@@ -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();