mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Remove conditional status setting.
This commit is contained in:
parent
70276b7a7a
commit
4fa5dd62c5
1 changed files with 1 additions and 3 deletions
|
@ -788,9 +788,7 @@ class Controller extends Object implements CakeEventListener {
|
||||||
if ($status === null) {
|
if ($status === null) {
|
||||||
$status = 302;
|
$status = 302;
|
||||||
}
|
}
|
||||||
if ($status) {
|
$this->response->statusCode($status);
|
||||||
$this->response->statusCode($status);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($exit) {
|
if ($exit) {
|
||||||
$this->response->send();
|
$this->response->send();
|
||||||
|
|
Loading…
Reference in a new issue