X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fplatal.inc.php;h=1d8d6b7b82f889515a0b74048d84869c789945fc;hb=06db561e25dcd609e824d1461fd2814d1e46d807;hp=b936f324e01333fcde643d464597d54be0c57845;hpb=94c63478e2e66e968a61daedbafc5fbde9442102;p=platal.git diff --git a/include/platal.inc.php b/include/platal.inc.php index b936f32..1d8d6b7 100644 --- a/include/platal.inc.php +++ b/include/platal.inc.php @@ -69,6 +69,13 @@ function pl_error_handler($errno, $errstr, $errfile, $errline) E_STRICT => "Runtime Notice" ); + global $globals; + if (!$globals->debug) { + if (strpos($errortype[$errno], 'Notice') !== false) { + return; + } + } + $errstr = htmlentities($errstr); $GLOBALS['pl_errors'][] = "
".