From: Andrew Dolgov Date: Thu, 2 Feb 2012 08:46:07 +0000 (+0400) Subject: rewrite_urls: try to workaround against some weird php-version related bug X-Git-Tag: 1.5.10~11 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=376897afd793ec6dd8d97922f74a61acf8e584a2;p=tt-rss.git rewrite_urls: try to workaround against some weird php-version related bug --- diff --git a/include/functions.php b/include/functions.php index f188fc10..29f50f87 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) {