Fix API input/request variables
This commit is contained in:
parent
9bcf34685b
commit
35f5a76dfa
2 changed files with 3 additions and 3 deletions
|
@ -259,7 +259,7 @@ switch ($_SERVER['REQUEST_METHOD']) {
|
|||
break;
|
||||
|
||||
case 'PUT':
|
||||
parse_str(file_get_contents('php://input'), $_PUT);
|
||||
$_PUT = $this->input;
|
||||
|
||||
if (isset($_PUT['wish_id'], $_PUT['wish_status'])) {
|
||||
/**
|
||||
|
|
|
@ -152,7 +152,7 @@ switch ($_SERVER['REQUEST_METHOD']) {
|
|||
break;
|
||||
|
||||
case 'PUT':
|
||||
parse_str(file_get_contents('php://input'), $_PUT);
|
||||
$_PUT = $this->input;
|
||||
|
||||
$database
|
||||
->query(
|
||||
|
@ -165,7 +165,7 @@ switch ($_SERVER['REQUEST_METHOD']) {
|
|||
break;
|
||||
|
||||
case 'DELETE':
|
||||
parse_str(file_get_contents('php://input'), $_DELETE);
|
||||
$_DELETE = $this->input;
|
||||
|
||||
$database->query(
|
||||
'DELETE FROM `wishlists`
|
||||
|
|
Loading…
Reference in a new issue