MDL-60579 user: Add missing case breaks
authorAndrew Nicols <andrew@nicols.co.uk>
Thu, 9 Nov 2017 01:07:34 +0000 (09:07 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Thu, 9 Nov 2017 01:07:34 +0000 (09:07 +0800)
user/renderer.php

index 9368c19..ca0fe04 100644 (file)
@@ -320,12 +320,14 @@ class core_user_renderer extends plugin_renderer_base {
                             $val = get_string('numyear', 'moodle', 1);
                             $filteroptions += $this->format_filter_option(USER_FILTER_LAST_ACCESS, $criteria, $timestamp, $val);
                         }
+                        break;
                     case USER_FILTER_ROLE:
                         $criteria = get_string('role');
                         if ($role = $DB->get_record('role', array('id' => $value))) {
                             $role = role_get_name($role);
                             $filteroptions += $this->format_filter_option(USER_FILTER_ROLE, $criteria, $value, $role);
                         }
+                        break;
                 }
             }
         }