From: jsoares Date: Mon, 22 Jan 2018 22:41:24 +0000 (+0000) Subject: Fixed time stamping of new unmarked/unpublished articles X-Git-Tag: 18.8~84^2 X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=commitdiff_plain;h=26ad257de5aba4a6aa7b2cbf793518aa3a987555 Fixed time stamping of new unmarked/unpublished articles --- diff --git a/classes/rssutils.php b/classes/rssutils.php index e5233b71..e659f096 100644 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -945,8 +945,8 @@ class RSSUtils { $published = 0; } - $last_marked = ($marked == 'true') ? 'NOW()' : null; - $last_published = ($published == 'true') ? 'NOW()' : null; + $last_marked = ($marked == 1) ? 'NOW()' : 'NULL'; + $last_published = ($published == 1) ? 'NOW()' : 'NULL'; $sth = $pdo->prepare( "INSERT INTO ttrss_user_entries