Little optimization in redirect of controller.

Signed-off-by: Mark Story <mark@mark-story.com>
This commit is contained in:
Juan Basso 2009-11-19 20:24:10 -02:00 committed by mark_story
parent 1cef0ac981
commit 52fcabc96a

View file

@ -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])) {