Browse Source

update_rss_feed: don't try to use quoted NOW() in query

Andrew Dolgov 1 year ago
parent
commit
d4c05d0be2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      classes/rssutils.php

+ 1 - 1
classes/rssutils.php

@@ -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) {