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:43 +00:00
parent be19e36785
commit e5e2fc0599
+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;
}
}