]> git.wh0rd.org - tt-rss.git/commitdiff
fix warning when entry content is used as array unnecessarily
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 17 May 2012 10:56:36 +0000 (14:56 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 17 May 2012 10:56:36 +0000 (14:56 +0400)
include/rssfuncs.php

index cb985197c70c008bda9aad98a335854d56c3f191..1cb8c677ce2549291f8ebeb99b54bfb318edcb6e 100644 (file)
                                        $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];