Commit 9ce45873 authored by Neil Drumm's avatar Neil Drumm
Browse files

#82859 by RobRoy. Fix an uninitialized variable.

parent 1f9b94dc
......@@ -2407,6 +2407,7 @@ function user_build_filter_query() {
// This checks to see if this permission filter is an enabled permission for the authenticated role.
// If so, then all users would be listed, and we can skip adding it to the filter query.
if ($key == 'permission') {
$account = new StdClass();
$account->uid = 'user_filter';
$account->roles = array(DRUPAL_AUTHENTICATED_RID => 1);
if (user_access($value, $account)) {
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