Commit 0cb47852 authored by Francois Marier's avatar Francois Marier Committed by Gerrit Code Review
Browse files

Merge "Fix PHP warning on admin user search page"

parents 6763b52a d8ad6950
...@@ -358,7 +358,7 @@ function build_admin_user_search_results($search, $offset, $limit) { ...@@ -358,7 +358,7 @@ function build_admin_user_search_results($search, $offset, $limit) {
unset($cols['select']); unset($cols['select']);
} }
} }
else if (!$USER->get('admin')) { else if (!$USER->get('admin') && $results['data']) {
foreach ($results['data'] as &$r) { foreach ($results['data'] as &$r) {
if (!isset($r['email'])) { if (!isset($r['email'])) {
$r['email'] = '- ' . get_string('emailaddresshidden', 'admin') . ' -'; $r['email'] = '- ' . get_string('emailaddresshidden', 'admin') . ' -';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment