Skip to content

Commit

Permalink
Fixing issue where an AppController::appError would cause errors as $…
Browse files Browse the repository at this point in the history
…method was not a real method.
  • Loading branch information
markstory committed Nov 27, 2010
1 parent d3f0d25 commit 3457797
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cake/libs/exception_renderer.php
Expand Up @@ -159,7 +159,9 @@ protected function _getController($exception) {
* @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));
}
}

/**
Expand Down

0 comments on commit 3457797

Please sign in to comment.