]> git.mjollnir.org Git - moodle.git/commitdiff
debugging(): our errors must be passed to PHP as E_USER_NOTICE
authormartinlanghoff <martinlanghoff>
Thu, 21 Dec 2006 21:56:49 +0000 (21:56 +0000)
committermartinlanghoff <martinlanghoff>
Thu, 21 Dec 2006 21:56:49 +0000 (21:56 +0000)
lib/weblib.php

index 4ff909b55bb67499bd85d32a5d49c3fc922801ee..e9aea72d7afa25206f1f329db7f886d4dd59eaa9 100644 (file)
@@ -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;