send digest: mark digest sent attempt even if there were no headlines

This commit is contained in:
Andrew Dolgov 2010-11-08 13:58:50 +03:00
parent 7d4dba8fc3
commit 019dd98d05

View file

@ -3843,12 +3843,12 @@
print "Marking affected articles as read...\n"; print "Marking affected articles as read...\n";
catchupArticlesById($link, $affected_ids, 0, $line["id"]); catchupArticlesById($link, $affected_ids, 0, $line["id"]);
} }
db_query($link, "UPDATE ttrss_users SET last_digest_sent = NOW()
WHERE id = " . $line["id"]);
} else { } else {
print "No headlines\n"; print "No headlines\n";
} }
db_query($link, "UPDATE ttrss_users SET last_digest_sent = NOW()
WHERE id = " . $line["id"]);
} }
} }