mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 10:25:56 +00:00
if not enabled, set content_preview to "" instead of null
This commit is contained in:
@@ -231,7 +231,7 @@ class Feeds extends Handler_Protected {
|
|||||||
++$headlines_count;
|
++$headlines_count;
|
||||||
|
|
||||||
if (!get_pref('SHOW_CONTENT_PREVIEW')) {
|
if (!get_pref('SHOW_CONTENT_PREVIEW')) {
|
||||||
$line["content_preview"] = null;
|
$line["content_preview"] = "";
|
||||||
} else {
|
} else {
|
||||||
$line["content_preview"] = "— " . truncate_string(strip_tags($line["content"]), 250);
|
$line["content_preview"] = "— " . truncate_string(strip_tags($line["content"]), 250);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user