diff --git a/src/api/wishes.php b/src/api/wishes.php index 565503ff..3875d66d 100644 --- a/src/api/wishes.php +++ b/src/api/wishes.php @@ -259,7 +259,7 @@ switch ($_SERVER['REQUEST_METHOD']) { break; case 'PUT': - parse_str(file_get_contents("php://input"), $_PUT); + parse_str(file_get_contents('php://input'), $_PUT); if (isset($_PUT['wish_id'], $_PUT['wish_status'])) { /** @@ -294,7 +294,7 @@ switch ($_SERVER['REQUEST_METHOD']) { break; case 'DELETE': - parse_str(file_get_contents("php://input"), $_DELETE); + parse_str(file_get_contents('php://input'), $_DELETE); if (isset($_DELETE['wish_id'])) { $database->query( diff --git a/src/api/wishlists.php b/src/api/wishlists.php index ec3819fc..f0acf0a1 100644 --- a/src/api/wishlists.php +++ b/src/api/wishlists.php @@ -152,7 +152,7 @@ switch ($_SERVER['REQUEST_METHOD']) { break; case 'PUT': - parse_str(file_get_contents("php://input"), $_PUT); + parse_str(file_get_contents('php://input'), $_PUT); $database ->query( @@ -165,7 +165,7 @@ switch ($_SERVER['REQUEST_METHOD']) { break; case 'DELETE': - parse_str(file_get_contents("php://input"), $_DELETE); + parse_str(file_get_contents('php://input'), $_DELETE); $database->query( 'DELETE FROM `wishlists` diff --git a/src/classes/api.php b/src/classes/api.php index 9bddb738..2ff156fd 100644 --- a/src/classes/api.php +++ b/src/classes/api.php @@ -61,7 +61,7 @@ class API break; default: - parse_str(file_get_contents("php://input"), $_INPUT); + parse_str(file_get_contents('php://input'), $_INPUT); $request_variables = array_merge($request_variables, $_INPUT); break;