MDL-18051: Fixed errors in evalmath when using grade expressions that begin with bracket

This commit is contained in:
sam_marshall
2009-05-21 11:54:59 +00:00
parent 369c4ab13d
commit 77464d6be4
+4 -1
View File
@@ -422,7 +422,10 @@ class EvalMathStack {
}
function last($n=1) {
return $this->stack[$this->count-$n];
if ($this->count - $n >= 0) {
return $this->stack[$this->count-$n];
}
return null;
}
}