diff --git a/api.php b/api.php index e4ab2c1..65a476c 100644 --- a/api.php +++ b/api.php @@ -10,7 +10,7 @@ try { $post = json_decode(file_get_contents("php://input"), true); - $_POST = array_merge($_POST,$post); + $_POST = array_merge($_POST,$post??[]); } catch (Exception $th) { }