mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing undefined default action issue in Router
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3444 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
e812204ebc
commit
0856014477
1 changed files with 5 additions and 0 deletions
|
@ -106,6 +106,11 @@ class Router extends Object {
|
|||
}
|
||||
}
|
||||
|
||||
if (!empty($default) && !isset($default['action']))
|
||||
{
|
||||
$default['action'] = 'index';
|
||||
}
|
||||
|
||||
$r = null;
|
||||
if (($route == '') || ($route == '/')) {
|
||||
$regexp = '/^[\/]*$/';
|
||||
|
|
Loading…
Reference in a new issue