diff --git a/sql.php b/sql.php index 8bd1a3c..849c39c 100644 --- a/sql.php +++ b/sql.php @@ -45,11 +45,14 @@ class SQL { } if ($_x) { - $context = stream_context_create ( $options ); - $result = file_get_contents ( $url, false, $context ); - if ($r = json_decode ( $result )) { - // $r->status - // $r->order + try { + $context = stream_context_create ( $options ); + $result = file_get_contents ( $url, false, $context ); + if ($r = json_decode ( $result )) { + // $r->status + // $r->order + } + } catch ( exception $e ) { } }