summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-02-02 12:46:07 +0400
committerAndrew Dolgov <[email protected]>2012-02-02 12:46:07 +0400
commit376897afd793ec6dd8d97922f74a61acf8e584a2 (patch)
treeebecccf4575c09b89783f3de784cc0e1cf43f9ca /include
parent71bb56d95273f7cab4936c289c137abeff44da7d (diff)
rewrite_urls: try to workaround against some weird php-version related bug
Diffstat (limited to 'include')
-rw-r--r--include/functions.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index f188fc10a..29f50f876 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -4963,7 +4963,11 @@
$node = $doc->getElementsByTagName('body')->item(0);
- return $doc->saveXML($node);
+ // http://tt-rss.org/forum/viewtopic.php?f=1&t=970
+ if ($node)
+ return $doc->saveXML($node);
+ else
+ return $html;
}
function filter_to_sql($filter) {