Permalink
Browse files

debugging(): our errors must be passed to PHP as E_USER_NOTICE

  • Loading branch information...
1 parent 77c7f0f commit ccc776694d4371cd1e3c2c838754f0f05133639f martinlanghoff committed Dec 21, 2006
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/weblib.php
View
@@ -5492,8 +5492,7 @@ function debugging($message='', $level=DEBUG_NORMAL) {
if ($CFG->debugdisplay) {
notify($message, 'notifytiny');
} else {
- // moodle debug levels constants map well to PHP's own
- trigger_error($message, $level);
+ trigger_error($message, E_USER_NOTICE);
}
}
return true;

0 comments on commit ccc7766

Please sign in to comment.