Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/06/2023 11:51:53 PM (21 months ago)
Author:
espellcaste
Message:

PHPCS: adding space after an operator in a if statement.

Closes https://github.com/buddypress/buddypress/pull/45
See #7228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/screens/edit.php

    r13392 r13393  
    6565
    6666        // There are errors.
    67         if ( !empty( $errors ) ) {
     67        if ( ! empty( $errors ) ) {
    6868            bp_core_add_message( __( 'Your changes have not been saved. Please fill in all required fields, and save your changes again.', 'buddypress' ), 'error' );
    6969
     
    8181                $value = isset( $_POST[ 'field_' . $field_id ] ) ? $_POST[ 'field_' . $field_id ] : '';
    8282
    83                 $visibility_level = !empty( $_POST[ 'field_' . $field_id . '_visibility' ] ) ? $_POST[ 'field_' . $field_id . '_visibility' ] : 'public';
     83                $visibility_level = ! empty( $_POST[ 'field_' . $field_id . '_visibility' ] ) ? $_POST[ 'field_' . $field_id . '_visibility' ] : 'public';
    8484
    8585                // Save the old and new values. They will be
     
    149149
    150150            // Set the feedback messages.
    151             if ( !empty( $errors ) ) {
     151            if ( ! empty( $errors ) ) {
    152152                bp_core_add_message( __( 'There was a problem updating some of your profile information. Please try again.', 'buddypress' ), 'error' );
    153153            } else {
Note: See TracChangeset for help on using the changeset viewer.