PHP errors in JoinListForm.

Created on 4 July 2024, 5 months ago

Problem/Motivation

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'])];
          }
πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rclemings

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024