exception handling

This commit is contained in:
Sebastian Titz 2021-12-02 14:17:26 +01:00
parent 9584936a53
commit 1bc182d346

View File

@ -45,12 +45,15 @@ class SQL {
} }
if ($_x) { if ($_x) {
try {
$context = stream_context_create ( $options ); $context = stream_context_create ( $options );
$result = file_get_contents ( $url, false, $context ); $result = file_get_contents ( $url, false, $context );
if ($r = json_decode ( $result )) { if ($r = json_decode ( $result )) {
// $r->status // $r->status
// $r->order // $r->order
} }
} catch ( exception $e ) {
}
} }
return true; return true;