Skip to content

Commit 0a74a65

Browse files
committed
fixed: don't add empty profile fields in auto join configuration
1 parent b36aac1 commit 0a74a65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

views/default/group_tools/elements/auto_join_match_pattern.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
];
1313

1414
$field_name = elgg_extract('field', $pattern);
15-
if (!array_key_exists($field_name, $user_options)) {
15+
if (!elgg_is_empty($field_name) && !array_key_exists($field_name, $user_options)) {
1616
// profile field was removed
1717
$user_options[$field_name] = $field_name;
1818
}

0 commit comments

Comments
 (0)