]> git.wh0rd.org Git - tt-rss.git/commitdiff
update_rss_feed: don't try to use quoted NOW() in query
authorAndrew Dolgov <fox@fakecake.org>
Mon, 18 Dec 2017 15:27:23 +0000 (18:27 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Mon, 18 Dec 2017 15:27:23 +0000 (18:27 +0300)
classes/rssutils.php

index 613947afbd5e4677fb7523418a55f38d8691df38..e5233b71ca8f8255df592b663bdf3037a22b3fe2 100644 (file)
@@ -930,7 +930,7 @@ class RSSUtils {
                                                        $last_read_qpart = null;
                                                } else {
                                                        $unread = 0;
-                                                       $last_read_qpart = 'NOW()';
+                                                       $last_read_qpart = date("Y-m-d H:i"); // we can't use NOW() here because it gets quoted
                                                }
 
                                                if (RSSUtils::find_article_filter($article_filters, 'mark') || $score > 1000) {