mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Fixing issue where an AppController::appError would cause errors as $method was not a real method.
This commit is contained in:
parent
d3f0d25c03
commit
345779772d
1 changed files with 3 additions and 1 deletions
|
@ -159,7 +159,9 @@ class ExceptionRenderer {
|
|||
* @return void
|
||||
*/
|
||||
public function render() {
|
||||
call_user_func_array(array($this, $this->method), array($this->error));
|
||||
if ($this->method) {
|
||||
call_user_func_array(array($this, $this->method), array($this->error));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue