Fixing issue where an AppController::appError would cause errors as $method was not a real method.

This commit is contained in:
mark_story 2010-11-27 14:35:36 -05:00
parent d3f0d25c03
commit 345779772d

View file

@ -159,7 +159,9 @@ class ExceptionRenderer {
* @return void * @return void
*/ */
public function render() { 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));
}
} }
/** /**