Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fallback to the default renderer if the config key is missing.

  • Loading branch information...
commit dea4fa4d7313b1ba84b404d96bfdfe87720a9522 1 parent ceb46b5
@markstory markstory authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/Error/ErrorHandler.php
View
2  lib/Cake/Error/ErrorHandler.php
@@ -113,7 +113,7 @@ public static function handleException(Exception $exception) {
if (!empty($config['log'])) {
CakeLog::write(LOG_ERR, self::_getMessage($exception));
}
- $renderer = $config['renderer'];
+ $renderer = isset($config['renderer']) ? $config['renderer'] : 'ExceptionRenderer';
if ($renderer !== 'ExceptionRenderer') {
list($plugin, $renderer) = pluginSplit($renderer, true);
App::uses($renderer, $plugin . 'Error');
Please sign in to comment.
Something went wrong with that request. Please try again.