Skip to content

Commit

Permalink
debugging(): our errors must be passed to PHP as E_USER_NOTICE
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlanghoff committed Dec 21, 2006
1 parent 77c7f0f commit ccc7766
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/weblib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ccc7766

Please sign in to comment.