exception handling

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

13
sql.php
View File

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