From ccc776694d4371cd1e3c2c838754f0f05133639f Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Thu, 21 Dec 2006 21:56:49 +0000 Subject: [PATCH] debugging(): our errors must be passed to PHP as E_USER_NOTICE --- lib/weblib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 4ff909b55b..e9aea72d7a 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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; -- 2.39.5