Added breaks to the switch statement to avoid unnecessary processing

This commit is contained in:
Mark Nelson 2013-04-24 15:50:29 +08:00
parent 6b145ee81f
commit 3d0b62c25d

View file

@ -154,8 +154,10 @@ class customcert_element_grade extends customcert_element_base {
switch ($COURSE->format) {
case "topics":
$sectionlabel = get_string("topic");
break;
case "weeks":
$sectionlabel = get_string("week");
break;
default:
$sectionlabel = get_string("section");
break;