← All changes
|
integrations/asgaros-forum/includes/requirements.php
+5
-0
7.9.9
→
8.0.6
View file →
| @@ -80,8 +80,13 @@ | ||
| 80 | 80 | * @param $requirement |
| 81 | 81 | */ |
| 82 | 82 | function gamipress_asgaros_forum_ajax_update_requirement( $requirement_id, $requirement ) { |
| 83 | 83 | |
| 84 | + $requirement = wp_parse_args( $requirement, array( | |
| 85 | + 'asgaros_forum' => '', | |
| 86 | + 'asgaros_topic' => '', | |
| 87 | + ) ); | |
| 88 | + | |
| 84 | 89 | // Forums |
| 85 | 90 | if( isset( $requirement['trigger_type'] ) |
| 86 | 91 | && ( $requirement['trigger_type'] === 'gamipress_asgaros_forum_specific_forum_new_post' |
| 87 | 92 | || $requirement['trigger_type'] === 'gamipress_asgaros_forum_specific_forum_new_topic' |