From: Andrew Dolgov Date: Thu, 17 May 2012 10:56:36 +0000 (+0400) Subject: fix warning when entry content is used as array unnecessarily X-Git-Tag: 1.5.11~3 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=eb38af4ee441e800a2d326ef8c2ac7d203ab81ec;p=tt-rss.git fix warning when entry content is used as array unnecessarily --- diff --git a/include/rssfuncs.php b/include/rssfuncs.php index cb985197..1cb8c677 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -672,7 +672,7 @@ $entry_content = $item["content:escaped"]; if (!$entry_content) $entry_content = $item["content:encoded"]; - if (!$entry_content) $entry_content = $item["content"]["encoded"]; + if (!$entry_content && is_array($entry_content)) $entry_content = $item["content"]["encoded"]; if (!$entry_content) $entry_content = $item["content"]; if (is_array($entry_content)) $entry_content = $entry_content[0];