mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix notice error when a missing action error is hit.
This commit is contained in:
parent
7b939186a1
commit
4541510e26
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ abstract class ControllerTestCase extends CakeTestCase {
|
|||
}
|
||||
$Dispatch->loadRoutes = $this->loadRoutes;
|
||||
$Dispatch->parseParams(new CakeEvent('ControllerTestCase', $Dispatch, array('request' => $request)));
|
||||
if (!isset($request->params['controller'])) {
|
||||
if (!isset($request->params['controller']) && Router::currentRoute()) {
|
||||
$this->headers = Router::currentRoute()->response->header();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue