Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 13 years ago

#5132 closed defect (bug) (fixed)

Provide fallback for group invite status in group settings form handler

Reported by: boonebgorges Owned by: boonebgorges
Priority: lowest Milestone: 1.9
Component: Groups Version:
Severity: trivial Keywords:
Cc:

Description

In groups_screen_group_admin_settings(), we should check whether $_POST['group-invite-status'] is set before checking it against the status whitelist, to avoid PHP warnings. Sites that are using BP's core templates for the group edit pages will have this input in the edit form, but custom templates that are a bit older will not, resulting in PHP warnings.

Change History (1)

#1 @boonebgorges
13 years ago

  • Owner set to boonebgorges
  • Resolution → fixed
  • Status new → closed

In 7343:

Fix PHP notice in groups_screen_group_admin_settings()

To support legacy group edit templates, we must check to see that
$_POSTgroup-invite-status is populated before sanitizing the value
against our status whitelist.

Fixes #5132

Note: See TracTickets for help on using tickets.