mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
Lobby: Dashboard: Announcements - suppress xml parse errors when forum is unreachable.
This commit is contained in:
parent
c7036be53c
commit
2d2cf36428
@ -219,7 +219,7 @@ class DashboardController extends ApiControllerBase
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
$output = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
$payload = simplexml_load_string($output);
|
||||
$payload = @simplexml_load_string($output);
|
||||
if (empty($payload)) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user