mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
using the right superglobal
This commit is contained in:
parent
93ba85b8b8
commit
dc83669e9b
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ class CakeRequest implements ArrayAccess {
|
||||||
$override = true;
|
$override = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($override && !in_array($_ENV['REQUEST_METHOD'], ['POST', 'PUT', 'PATCH', 'DELETE'])) {
|
if ($override && !in_array($_SERVER['REQUEST_METHOD'], ['POST', 'PUT', 'PATCH', 'DELETE'])) {
|
||||||
$this->data = array();
|
$this->data = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue