From eb38af4ee441e800a2d326ef8c2ac7d203ab81ec Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 17 May 2012 14:56:36 +0400 Subject: fix warning when entry content is used as array unnecessarily --- include/rssfuncs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/rssfuncs.php') diff --git a/include/rssfuncs.php b/include/rssfuncs.php index cb985197c..1cb8c677c 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]; -- cgit v1.2.3