]> git.wh0rd.org Git - tt-rss.git/commitdiff
send digest: mark digest sent attempt even if there were no headlines
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 8 Nov 2010 10:58:50 +0000 (13:58 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 8 Nov 2010 10:58:50 +0000 (13:58 +0300)
functions.php

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