mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 21:45:56 +00:00
force article content/etc to string when updating to avoid failing null constraint check
This commit is contained in:
@@ -879,14 +879,14 @@ class RSSUtils {
|
|||||||
$entry_guid_hashed,
|
$entry_guid_hashed,
|
||||||
$entry_link,
|
$entry_link,
|
||||||
$entry_timestamp_fmt,
|
$entry_timestamp_fmt,
|
||||||
$entry_content,
|
"$entry_content",
|
||||||
$entry_current_hash,
|
$entry_current_hash,
|
||||||
$date_feed_processed,
|
$date_feed_processed,
|
||||||
$entry_comments,
|
$entry_comments,
|
||||||
(int)$num_comments,
|
(int)$num_comments,
|
||||||
$entry_plugin_data,
|
$entry_plugin_data,
|
||||||
$entry_language,
|
"$entry_language",
|
||||||
$entry_author]);
|
"$entry_author"]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -998,12 +998,12 @@ class RSSUtils {
|
|||||||
WHERE id = :id");
|
WHERE id = :id");
|
||||||
|
|
||||||
$sth->execute([":title" => $entry_title,
|
$sth->execute([":title" => $entry_title,
|
||||||
":content" => $entry_content,
|
":content" => "$entry_content",
|
||||||
":content_hash" => $entry_current_hash,
|
":content_hash" => $entry_current_hash,
|
||||||
":updated" => $entry_timestamp_fmt,
|
":updated" => $entry_timestamp_fmt,
|
||||||
":num_comments" => (int)$num_comments,
|
":num_comments" => (int)$num_comments,
|
||||||
":plugin_data" => $entry_plugin_data,
|
":plugin_data" => $entry_plugin_data,
|
||||||
":author" => $entry_author,
|
":author" => "$entry_author",
|
||||||
":lang" => $entry_language,
|
":lang" => $entry_language,
|
||||||
":id" => $ref_id]);
|
":id" => $ref_id]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user