From: tjhunt Date: Mon, 10 Dec 2007 16:53:17 +0000 (+0000) Subject: Do not suppress errors from developers! it makes debugging a nightmare! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0b942156379cd519b14e748afb343bc0afef2181;p=moodle.git Do not suppress errors from developers! it makes debugging a nightmare! --- diff --git a/lib/mathslib.php b/lib/mathslib.php index 61712fdd2f..f6ee745c1f 100644 --- a/lib/mathslib.php +++ b/lib/mathslib.php @@ -24,7 +24,7 @@ class calc_formula { */ function calc_formula($formula, $params=false) { $this->_em = new EvalMath(); - $this->_em->suppress_errors = true; + $this->_em->suppress_errors = !debugging('', DEBUG_DEVELOPER); if (strpos($formula, '=') !== 0) { $this->_error = "missing leading '='"; return;