]> git.wh0rd.org - tt-rss.git/commitdiff
Include NOW() in prepared SQL for rssutils.php
authorRichard Mortimer <richm@oldelvet.org.uk>
Sun, 10 Dec 2017 23:05:03 +0000 (23:05 +0000)
committerRichard Mortimer <richm@oldelvet.org.uk>
Sun, 10 Dec 2017 23:05:52 +0000 (23:05 +0000)
classes/rssutils.php

index b5ff63d32ac2811ad67403ca53f42e2c9f4e4c5a..613947afbd5e4677fb7523418a55f38d8691df38 100644 (file)
@@ -953,10 +953,10 @@ class RSSUtils {
                                                                (ref_id, owner_uid, feed_id, unread, last_read, marked,
                                                                published, score, tag_cache, label_cache, uuid,
                                                                last_marked, last_published)
-                                                       VALUES (?, ?, ?, ?, ?, ?, ?, ?, '', '', '', ?, ?)");
+                                                       VALUES (?, ?, ?, ?, ?, ?, ?, ?, '', '', '', ".$last_marked.", ".$last_published.")");
 
                                                $sth->execute([$ref_id, $owner_uid, $feed, $unread, $last_read_qpart, $marked,
-                                                       $published, $score, $last_marked, $last_published]);
+                                                       $published, $score]);
 
                                                $sth = $pdo->prepare("SELECT int_id FROM ttrss_user_entries WHERE
                                                                ref_id = ? AND owner_uid = ? AND