diff options
-rw-r--r-- | includes/common.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc index c2a22c899..a37bbf670 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -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'); } |