Skip to:
Content

BuddyPress.org

Ticket #9180: 9180.01.patch

File 9180.01.patch, 705 bytes (added by emaralive, 12 months ago)

Initial patch

  • src/bp-core/admin/bp-core-admin-optouts.php

    diff --git src/bp-core/admin/bp-core-admin-optouts.php src/bp-core/admin/bp-core-admin-optouts.php
    index 469c8bf73..6b55c61ce 100644
    function bp_core_optouts_admin_manage( $action = '' ) { 
    390390        }
    391391
    392392        // Get the IDs from the URL.
    393         $ids = false;
     393        $ids = 0;
    394394        if ( ! empty( $_POST['optout_ids'] ) ) {
    395395                $ids = wp_parse_id_list( $_POST['optout_ids'] );
    396396        } elseif ( ! empty( $_GET['optout_id'] ) ) {
    397397                $ids = absint( $_GET['optout_id'] );
    398398        }
    399399
    400         if ( empty( $ids ) ) {
    401                 return false;
    402         }
    403 
    404400        // Query for matching optouts, and filter out bad IDs.
    405401        $args       = array(
    406402                'id' => $ids,