diff --git a/lib/ajax.php b/lib/ajax.php index 150a5c31..a42b2f66 100644 --- a/lib/ajax.php +++ b/lib/ajax.php @@ -41,7 +41,7 @@ if ($action == "newsfeed") { curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); curl_close($ch); - $news = simplexml_load_file(trim($output)); + $news = simplexml_load_string(trim($output)); } else { $news = false; } @@ -62,4 +62,4 @@ if ($action == "newsfeed") { } } else { echo "No action set."; -} \ No newline at end of file +}