Skip to content

Commit

Permalink
fix: undefined variable enrollment action in new enrollment request (#60
Browse files Browse the repository at this point in the history
)

* fix: undefined variable enrollment action in new enrollment request

* refactor: added required space, wpcs rules

* refactor: improve the fix

---------

Co-authored-by: Maria Fernanda Magallanes Zubillaga <maria.magallanes@edunext.co>
  • Loading branch information
julianramirez2 and MaferMazu authored Nov 8, 2023
1 parent 33c7f5a commit 902882e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ public function save_action( $post_id, $post ) {
return;
}

$enrollment_arr = array();
$enrollment_arr = array();
$enrollment_action = '';

if ( isset( $_POST['enrollment_course_id'] ) ) {
$enrollment_arr['enrollment_course_id'] = sanitize_text_field( wp_unslash( $_POST['enrollment_course_id'] ) );
Expand Down

0 comments on commit 902882e

Please sign in to comment.