Skip to content

Commit

Permalink
Fixed error in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jan 19, 2016
1 parent d08be3b commit a9ad1b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Network/Request.php
Expand Up @@ -294,8 +294,7 @@ protected function _processPost($data)
$override = true;
}

$method = $this->_environment['REQUEST_METHOD'];
if ($override && !in_array($method, ['PUT', 'POST', 'DELETE', 'PATCH'])) {
if ($override && !in_array($this->_environment['REQUEST_METHOD'], ['PUT', 'POST', 'DELETE', 'PATCH'])) {
$data = [];
}

Expand Down

0 comments on commit a9ad1b3

Please sign in to comment.