Skip to content

Commit

Permalink
fixed archive user issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
emgk committed Jul 7, 2018
1 parent aef708d commit 9550292
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/wsn-func.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ function wsn_store_email_into_archive( $email, $product_id ) {
return false;
}

$archived_data = ! is_array( $archived_data ) ? array() : $archived_data;

$archived_data[] = $email;

wsn_save_archive( $product_id, $archived_data );
Expand Down

0 comments on commit 9550292

Please sign in to comment.