| @@ -94,8 +94,15 @@ | ||
| 94 | 94 | * @param $requirement |
| 95 | 95 | */ |
| 96 | 96 | function gamipress_bbforms_ajax_update_requirement( $requirement_id, $requirement ) { |
| 97 | 97 | |
| 98 | + $requirement = wp_parse_args( $requirement, array( | |
| 99 | + 'bbforms_category' => '', | |
| 100 | + 'bbforms_tag' => '', | |
| 101 | + 'bbforms_field_name' => '', | |
| 102 | + 'bbforms_field_value' => '', | |
| 103 | + ) ); | |
| 104 | + | |
| 98 | 105 | if( isset( $requirement['trigger_type'] ) |
| 99 | 106 | && ( $requirement['trigger_type'] === 'gamipress_bbforms_form_specific_category_submission' ) ) { |
| 100 | 107 | |
| 101 | 108 | // Category |