1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:55:56 +00:00

if not enabled, set content_preview to "" instead of null

This commit is contained in:
Andrew Dolgov
2018-12-09 04:24:48 +03:00
parent a0d332326c
commit 8f5b5ae09e

View File

@@ -231,7 +231,7 @@ class Feeds extends Handler_Protected {
++$headlines_count;
if (!get_pref('SHOW_CONTENT_PREVIEW')) {
$line["content_preview"] = null;
$line["content_preview"] = "";
} else {
$line["content_preview"] = "— " . truncate_string(strip_tags($line["content"]), 250);