Added check if simplexml is activated

This commit is contained in:
BNoiZe
2013-11-16 17:36:47 +01:00
parent a431cbcf9e
commit 401dd7c96c

View File

@@ -26,6 +26,10 @@ if(isset($_POST['action'])) {
}
if ($action == "newsfeed") {
if (function_exists("simplexml_load_file") == false) {
die();
}
$news = simplexml_load_file('http://froxlor.org/feed.rss.php', null, LIBXML_NOCDATA);
if ($news !== false) {