Skip to content

Commit

Permalink
in array strict comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
erikyo committed Nov 17, 2022
1 parent 92b297a commit f0b7073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/admin-customizations.php
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ public function cf7a_sanitize_options( $input ) {

/* auto-unban delay */
$schedule = wp_get_schedules();
if ( ! empty( $input['unban_after'] ) && in_array( $input['unban_after'], array_keys( $schedule ) ) ) {
if ( ! empty( $input['unban_after'] ) && in_array( $input['unban_after'], array_keys( $schedule ), true ) ) {
if ( $this->options['unban_after'] !== $input['unban_after'] ) {
$new_input['unban_after'] = $input['unban_after'];
/* delete previous scheduled events */
Expand Down

0 comments on commit f0b7073

Please sign in to comment.