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) {
|
||||
case "topics":
|
||||
$sectionlabel = get_string("topic");
|
||||
break;
|
||||
case "weeks":
|
||||
$sectionlabel = get_string("week");
|
||||
break;
|
||||
default:
|
||||
$sectionlabel = get_string("section");
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue