Skip to content
Snippets Groups Projects
Commit 9ce45873 authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

#82859 by RobRoy. Fix an uninitialized variable.

parent 1f9b94dc
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -2407,6 +2407,7 @@ function user_build_filter_query() { ...@@ -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. // 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 so, then all users would be listed, and we can skip adding it to the filter query.
if ($key == 'permission') { if ($key == 'permission') {
$account = new StdClass();
$account->uid = 'user_filter'; $account->uid = 'user_filter';
$account->roles = array(DRUPAL_AUTHENTICATED_RID => 1); $account->roles = array(DRUPAL_AUTHENTICATED_RID => 1);
if (user_access($value, $account)) { if (user_access($value, $account)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment