Commit 09ed948a authored by webchick's avatar webchick

#291026 follow-up by Dave Reid: Fix incorrect variable name.

parent 79b740ac
......@@ -800,7 +800,7 @@ function _drupal_log_error($error, $fatal = FALSE) {
// Force display of error messages in update.php or if the proper error
// reporting level is set.
$error_level = variable_get('error_level', 2);
if ($error_level == 2 || ($error_level == 1 && $type != 'Notice') || (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'update')) {
if ($error_level == 2 || ($error_level == 1 && $error['%type'] != 'Notice') || (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'update')) {
drupal_set_message(t('%type: %message in %function (line %line of %file).', $error), 'error');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment