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