X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fplatal.inc.php;h=ae1a15cf171a3dc483d510309fef82efcf49d598;hb=493b6abebf3d6c35691f66fd1bfdc063efaab576;hp=3cdd140c9023692114303e60da581dadccecaf31;hpb=93c099e155700879064370905bde12a755feb657;p=platal.git diff --git a/include/platal.inc.php b/include/platal.inc.php index 3cdd140..ae1a15c 100644 --- a/include/platal.inc.php +++ b/include/platal.inc.php @@ -1,6 +1,6 @@ "Runtime Notice" ); - $errstr = htmlentities($errstr); + global $globals; + if (isset($globals) && !$globals->debug) { + if (strpos($errortype[$errno], 'Notice') !== false) { + return; + } + } + + $errstr = utf8_encode(htmlentities($errstr)); $GLOBALS['pl_errors'][] = "