]> git.wh0rd.org Git - tt-rss.git/commitdiff
set last_update even if feed failed to update properly
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 15 Nov 2005 08:24:28 +0000 (09:24 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 15 Nov 2005 08:24:28 +0000 (09:24 +0100)
functions.php

index 2fdd132206b5667753c4d5e18f5c9782358d2a4f..28cbb1cdda2d5a5774f05e3de02215a582f3455e 100644 (file)
                } else {
                        $error_msg = db_escape_string(magpie_error());
                        db_query($link, 
-                               "UPDATE ttrss_feeds SET last_error = '$error_msg' WHERE id = '$feed'");
+                               "UPDATE ttrss_feeds SET last_error = '$error_msg', 
+                                       last_updated = NOW() WHERE id = '$feed'");
                }
 
                db_query($link, "COMMIT");