Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/04/2011 05:33:50 PM (13 years ago)
Author:
boonebgorges
Message:

Avoid PHP notice when submitting group membership request via AJAX

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-functions.php

    r4596 r4604  
    755755    $requesting_user->date_modified = bp_core_current_time();
    756756    $requesting_user->is_confirmed  = 0;
    757     $requesting_user->comments      = $_POST['group-request-membership-comments'];
     757    $requesting_user->comments      = isset( $_POST['group-request-membership-comments'] ) ? $_POST['group-request-membership-comments'] : '';
    758758
    759759    if ( $requesting_user->save() ) {
Note: See TracChangeset for help on using the changeset viewer.