diff options
author | Andrew Dolgov <[email protected]> | 2012-05-17 14:56:36 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-05-17 14:56:36 +0400 |
commit | eb38af4ee441e800a2d326ef8c2ac7d203ab81ec (patch) | |
tree | 4f6c867f895880ca06e8010dbb6d4e8805491a3b /include/rssfuncs.php | |
parent | 5be0ba92dd7022425247b585eca31490cbc42f79 (diff) |
fix warning when entry content is used as array unnecessarily
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r-- | include/rssfuncs.php | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |