| @@ -85,8 +85,13 @@ | ||
| 85 | 85 | * @param $requirement |
| 86 | 86 | */ |
| 87 | 87 | function gamipress_wpforo_ajax_update_requirement( $requirement_id, $requirement ) { |
| 88 | 88 | |
| 89 | + $requirement = wp_parse_args( $requirement, array( | |
| 90 | + 'wpf_forum' => '', | |
| 91 | + 'wpf_topic' => '', | |
| 92 | + ) ); | |
| 93 | + | |
| 89 | 94 | // Forums |
| 90 | 95 | if( isset( $requirement['trigger_type'] ) |
| 91 | 96 | && ( $requirement['trigger_type'] === 'gamipress_wpforo_specific_forum_new_post' |
| 92 | 97 | || $requirement['trigger_type'] === 'gamipress_wpforo_specific_forum_new_topic' |