Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Add snippet to drupal_error_handler in
- * includes/common.inc
- */
- /**
- * Log errors as defined by administrator.
- *
- * Error levels:
- * - 0 = Log errors to database.
- * - 1 = Log errors to database and to screen.
- */
- function drupal_error_handler($errno, $message, $filename, $line, $context) {
- // If the @ error suppression operator was used, error_reporting will have
- // been temporarily set to 0.
- if (error_reporting() == 0) {
- return;
- }
- // E_NOTICE HACK
- global $conf;
- if (!empty($conf['e_notice_suppress']) && ($errno == E_NOTICE)) {
- return;
- }
- // END E_NOTICE HACK
- /* Now add
- * $conf['e_notice_suppress'];
- */ to your settings.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement