rewrite_urls: try to workaround against some weird php-version related bug

This commit is contained in:
Andrew Dolgov 2012-02-02 12:46:07 +04:00
parent 71bb56d952
commit 376897afd7
1 changed files with 5 additions and 1 deletions

View File

@ -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) {