]> git.mjollnir.org Git - moodle.git/commitdiff
Do not suppress errors from developers! it makes debugging a nightmare!
authortjhunt <tjhunt>
Mon, 10 Dec 2007 16:53:17 +0000 (16:53 +0000)
committertjhunt <tjhunt>
Mon, 10 Dec 2007 16:53:17 +0000 (16:53 +0000)
lib/mathslib.php

index 61712fdd2f9424d2a4ea90876466508234300a16..f6ee745c1f9fe33d71ea052ff9a9522cdadc0f80 100644 (file)
@@ -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;