Skip to content

Commit

Permalink
Merge branch 'wip-mdl-38332-m23' of git://github.com/rajeshtaneja/moo…
Browse files Browse the repository at this point in the history
…dle into MOODLE_23_STABLE
  • Loading branch information
stronk7 committed Mar 12, 2013
2 parents c6f2415 + 8256fae commit cf6fdbd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions admin/user.php
Expand Up @@ -196,11 +196,20 @@
}

list($extrasql, $params) = $ufiltering->get_sql_filter();
$users = get_users_listing($sort, $dir, $page*$perpage, $perpage, '', '', '',
$extrasql, $params, $context);

$usercount = get_users(false);
$usersearchcount = get_users(false, '', false, null, "", '', '', '', '', '*', $extrasql, $params);

// Exclude guest user from list.
$noguestsql = '';
if (!empty($extrasql)) {
$noguestsql .= ' AND';
}
$noguestsql .= " id <> :guestid";
$params['guestid'] = $CFG->siteguest;
$users = get_users_listing($sort, $dir, $page*$perpage, $perpage, '', '', '',
$extrasql.$noguestsql, $params, $context);

if ($extrasql !== '') {
echo $OUTPUT->heading("$usersearchcount / $usercount ".get_string('users'));
$usercount = $usersearchcount;
Expand Down

0 comments on commit cf6fdbd

Please sign in to comment.