Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Little optimization in redirect of controller.
Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information
jrbasso authored and markstory committed Nov 21, 2009
1 parent 1cef0ac commit 52fcabc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/controller/controller.php
Expand Up @@ -604,7 +604,7 @@ function redirect($url, $status = null, $exit = true) {
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])) {
Expand Down

0 comments on commit 52fcabc

Please sign in to comment.