Commit 0440e941 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't fetch views on staff, online users lists unnecessarily



On these pages, user views were being fetched along with each user,
but because the view lists are never displayed, they don't need to be
queried.

Change-Id: Ic3b9888de1abacdddc01853123bca29e3bf23901
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 1402a7c8
......@@ -1639,7 +1639,7 @@ function build_userlist_html(&$data, $page, $admingroups) {
function build_onlinelist_html(&$data, $page) {
if ($data['data']) {
$userdata = get_users_data($data['data'], $page);
$userdata = get_users_data($data['data'], false);
}
$smarty = smarty_core();
$smarty->assign('data', isset($userdata) ? $userdata : null);
......@@ -1673,7 +1673,7 @@ function build_onlinelist_html(&$data, $page) {
function build_stafflist_html(&$data, $page, $listtype, $inst='mahara') {
global $USER;
if ($data) {
$data = get_users_data($data, $page);
$data = get_users_data($data, false);
}
$smarty = smarty_core();
$smarty->assign('page', $page);
......
Markdown is supported
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