Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a997dc9
)
MDL-60579 user: Add missing case breaks
author
Andrew Nicols
<andrew@nicols.co.uk>
Thu, 9 Nov 2017 01:07:34 +0000
(09:07 +0800)
committer
Andrew Nicols
<andrew@nicols.co.uk>
Thu, 9 Nov 2017 01:07:34 +0000
(09:07 +0800)
user/renderer.php
patch
|
blob
|
blame
|
history
diff --git
a/user/renderer.php
b/user/renderer.php
index
9368c19
..
ca0fe04
100644
(file)
--- a/
user/renderer.php
+++ b/
user/renderer.php
@@
-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;
}
}
}