From: martinlanghoff Date: Thu, 21 Dec 2006 21:56:49 +0000 (+0000) Subject: debugging(): our errors must be passed to PHP as E_USER_NOTICE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ccc776694d4371cd1e3c2c838754f0f05133639f;p=moodle.git debugging(): our errors must be passed to PHP as E_USER_NOTICE --- 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;