From: Richard Mortimer Date: Sun, 10 Dec 2017 23:05:03 +0000 (+0000) Subject: Include NOW() in prepared SQL for rssutils.php X-Git-Tag: 18.8~120^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=aa16334f1f9dd9c6459f26f1594f17d555066a29;p=tt-rss.git Include NOW() in prepared SQL for rssutils.php --- diff --git a/classes/rssutils.php b/classes/rssutils.php index b5ff63d3..613947af 100644 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -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