Skip to content

Commit

Permalink
fix: PHP warning in admin option page
Browse files Browse the repository at this point in the history
  • Loading branch information
petitphp committed Sep 9, 2024
1 parent 1cac7d7 commit 583f2f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Admin/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function () {
?>
<input type="hidden" name="action" value="sfa_migrate">
<?php
if ( 'pending' !== $migration['status'] && 'in-progress' !== $migration['status'] ) {
if ( ! isset( $migration['status'] ) || ! in_array( $migration['status'], [ 'pending', 'in-progress' ], true ) ) {
submit_button( __( 'Migrate Old Data', 'shopping-feed-advanced' ) );
}
?>
Expand Down

0 comments on commit 583f2f6

Please sign in to comment.