summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-05-17 14:56:36 +0400
committerAndrew Dolgov <[email protected]>2012-05-17 14:56:36 +0400
commiteb38af4ee441e800a2d326ef8c2ac7d203ab81ec (patch)
tree4f6c867f895880ca06e8010dbb6d4e8805491a3b /include
parent5be0ba92dd7022425247b585eca31490cbc42f79 (diff)
fix warning when entry content is used as array unnecessarily
Diffstat (limited to 'include')
-rw-r--r--include/rssfuncs.php2
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];