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) { switch ($COURSE->format) {
case "topics": case "topics":
$sectionlabel = get_string("topic"); $sectionlabel = get_string("topic");
break;
case "weeks": case "weeks":
$sectionlabel = get_string("week"); $sectionlabel = get_string("week");
break;
default: default:
$sectionlabel = get_string("section"); $sectionlabel = get_string("section");
break; break;