Skip to content

Commit

Permalink
Fix fatal error
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabhmatolia committed Dec 29, 2020
1 parent a17c799 commit aa15d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bp-members/classes/class-bp-members-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,7 @@ public function process_user_suspend_update( $doaction = '' ) {

if ( ! empty( $is_suspend ) && 'suspend' === $is_suspend ) {
BP_Suspend_Member::suspend_user( $user_id );
} elseif ( bp_moderation_is_user_suspended( $user_id ) ) {
} elseif ( bp_is_active( 'moderation' ) && bp_moderation_is_user_suspended( $user_id ) ) {
BP_Suspend_Member::unsuspend_user( $user_id );
}
}
Expand Down

0 comments on commit aa15d19

Please sign in to comment.