- Issue created by @rclemings
- Issue was unassigned.
- Status changed to Needs review
5 months ago 9:42pm 4 July 2024
In src/Form/JoinListForm.php, a conditional is needed around the $edit_list definition. Without it, PHP errors result when a user does not have permission for a list.
Wrong:
$edit_list = $form['user_mailman_register']['lists']['list' . trim($list['lid'])]['options' . trim($list['lid'])];
Right:
if (isset($form['user_mailman_register']['lists']['list' . trim($list['lid'])]['options' . trim($list['lid'])])) {
$edit_list = $form['user_mailman_register']['lists']['list' . trim($list['lid'])]['options' . trim($list['lid'])];
}
Needs review
1.0
Code