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
1 changed files with 1 additions and 1 deletions

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);