Browse Source

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

mark_story 13 years ago
parent
commit
dea4fa4d73
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Error/ErrorHandler.php

+ 1 - 1
lib/Cake/Error/ErrorHandler.php

@@ -113,7 +113,7 @@ class ErrorHandler {
 		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');