if not enabled, set content_preview to "" instead of null
This commit is contained in:
parent
a0d332326c
commit
8f5b5ae09e
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue