summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-11-21 06:24:46 +0100
committerAndrew Dolgov <[email protected]>2007-11-21 06:24:46 +0100
commitea322415d295500dfa939e9c2e40e30909248c90 (patch)
treea7dba5d65ad17496ce500740c14918fe410090c6 /functions.php
parent70ee302871326d44103da0bca8e4fcb924b6f9a6 (diff)
work around yet another magpie parsing bug (closes #174)
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/functions.php b/functions.php
index 0f3cdefab..8e81b3cce 100644
--- a/functions.php
+++ b/functions.php
@@ -695,6 +695,7 @@
if ($_GET['xdebug']) {
print_r($item);
+
}
if (ENABLE_SIMPLEPIE) {
@@ -774,6 +775,10 @@
if (!$entry_content) $entry_content = $item["content:encoded"];
if (!$entry_content) $entry_content = $item["content"];
+
+ // Magpie bugs are getting ridiculous
+ if (trim($entry_content) == "Array") $entry_content = false;
+
if (!$entry_content) $entry_content = $item["atom_content"];
if (!$entry_content) $entry_content = $item["summary"];
if (!$entry_content) $entry_content = $item["description"];
@@ -782,12 +787,13 @@
if (is_array($entry_content)) {
$entry_content = $entry_content["encoded"];
if (!$entry_content) $entry_content = $entry_content["escaped"];
- }
+ }
}
-// print_r($item);
-// print_r(htmlspecialchars($entry_content));
-// print "<br>";
+ if ($_GET["xdebug"]) {
+ print "update_rss_feed: content: ";
+ print_r(htmlspecialchars($entry_content));
+ }
$entry_content_unescaped = $entry_content;