Added breaks to the switch statement to avoid unnecessary processing
This commit is contained in:
parent
6b145ee81f
commit
3d0b62c25d
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue