Skip to:
Content

BuddyPress.org

Ticket #6707: 6707.01.patch

File 6707.01.patch, 472 bytes (added by r-a-y, 11 years ago)
  • src/bp-settings/bp-settings-actions.php

     
    305305
    306306        if ( isset( $_POST['notifications'] ) ) {
    307307                foreach ( (array) $_POST['notifications'] as $key => $value ) {
     308                        if ( 'no' !== $value ) {
     309                                $value = 'yes';
     310                        }
    308311                        bp_update_user_meta( (int) bp_displayed_user_id(), $key, $value );
    309312                }
    310313        }