Applying optimization to Router::connect() from 'robustsolution' Fixes #302

This commit is contained in:
mark_story 2009-11-14 16:32:18 -05:00
parent ffbd6f5dc8
commit 3712072531

View file

@ -232,6 +232,7 @@ class Router {
foreach ($_this->__prefixes as $prefix) { foreach ($_this->__prefixes as $prefix) {
if (isset($default[$prefix])) { if (isset($default[$prefix])) {
$default['prefix'] = $prefix; $default['prefix'] = $prefix;
break;
} }
} }
if (isset($default['prefix'])) { if (isset($default['prefix'])) {