mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Little optimization in redirect of controller.
Signed-off-by: Mark Story <mark@mark-story.com>
This commit is contained in:
parent
1cef0ac981
commit
52fcabc96a
1 changed files with 1 additions and 1 deletions
|
@ -604,7 +604,7 @@ class Controller extends Object {
|
|||
504 => 'Gateway Time-out'
|
||||
);
|
||||
if (is_string($status)) {
|
||||
$codes = array_combine(array_values($codes), array_keys($codes));
|
||||
$codes = array_flip($codes);
|
||||
}
|
||||
|
||||
if (isset($codes[$status])) {
|
||||
|
|
Loading…
Reference in a new issue