diff --git a/classes/controllers/FrmAddonsController.php b/classes/controllers/FrmAddonsController.php index bfcd46d218..e0a379ad43 100644 --- a/classes/controllers/FrmAddonsController.php +++ b/classes/controllers/FrmAddonsController.php @@ -642,7 +642,7 @@ protected static function fill_update_addon_info( $installed_addons ) { $new_license = $addon->license; - if ( empty( $new_license ) || in_array( $new_license, $checked_licenses ) ) { + if ( empty( $new_license ) || in_array( $new_license, $checked_licenses, true ) ) { continue; } diff --git a/classes/controllers/FrmEntriesController.php b/classes/controllers/FrmEntriesController.php index 3f40a54b5c..a7fec62b21 100644 --- a/classes/controllers/FrmEntriesController.php +++ b/classes/controllers/FrmEntriesController.php @@ -190,7 +190,7 @@ public static function manage_columns( $columns ) { $action = FrmAppHelper::simple_get( 'frm_action', 'sanitize_title' ); - if ( FrmAppHelper::is_admin_page( 'formidable-entries' ) && in_array( $action, array( '', 'list', 'destroy' ) ) ) { + if ( FrmAppHelper::is_admin_page( 'formidable-entries' ) && in_array( $action, array( '', 'list', 'destroy' ), true ) ) { add_screen_option( 'per_page', array( diff --git a/classes/controllers/FrmFormActionsController.php b/classes/controllers/FrmFormActionsController.php index 0f0ac6a805..18c17021a0 100644 --- a/classes/controllers/FrmFormActionsController.php +++ b/classes/controllers/FrmFormActionsController.php @@ -145,7 +145,7 @@ private static function maybe_add_action_to_group( $action_controls, &$groups ) } foreach ( $action_controls as $action ) { - if ( isset( $groups[ $action->id_base ] ) || in_array( $action->id_base, $grouped ) ) { + if ( isset( $groups[ $action->id_base ] ) || in_array( $action->id_base, $grouped, true ) ) { continue; } diff --git a/classes/helpers/FrmAppHelper.php b/classes/helpers/FrmAppHelper.php index 7ee6c372d2..48247b78b2 100644 --- a/classes/helpers/FrmAppHelper.php +++ b/classes/helpers/FrmAppHelper.php @@ -3353,7 +3353,7 @@ private static function get_unit( $unit ) { } foreach ( $units as $u => $strings ) { - if ( in_array( $unit, $strings ) ) { + if ( in_array( $unit, $strings, true ) ) { return $u; } } diff --git a/classes/helpers/FrmEntriesListHelper.php b/classes/helpers/FrmEntriesListHelper.php index 35aac8c6c1..11e5a71b79 100644 --- a/classes/helpers/FrmEntriesListHelper.php +++ b/classes/helpers/FrmEntriesListHelper.php @@ -303,7 +303,7 @@ protected function get_primary_column_name() { $primary_column = ''; foreach ( $columns as $column_key => $column_display_name ) { - if ( 'cb' !== $column_key && ! in_array( $column_key, $hidden ) ) { + if ( 'cb' !== $column_key && ! in_array( $column_key, $hidden, true ) ) { $primary_column = $column_key; break; } diff --git a/classes/helpers/FrmXMLHelper.php b/classes/helpers/FrmXMLHelper.php index dae51990e7..6368811671 100644 --- a/classes/helpers/FrmXMLHelper.php +++ b/classes/helpers/FrmXMLHelper.php @@ -663,7 +663,7 @@ private static function maybe_add_required( &$f ) { */ private static function maybe_update_in_section_variable( &$in_section, &$f ) { // If we're at the end of a section, switch $in_section is 0 - if ( in_array( $f['type'], array( 'end_divider', 'break', 'form' ) ) ) { + if ( in_array( $f['type'], array( 'end_divider', 'break', 'form' ), true ) ) { $in_section = 0; } @@ -2304,7 +2304,7 @@ private static function setup_new_notification( &$new_notification, $notificatio foreach ( $add_fields as $add_field ) { if ( isset( $notification[ $add_field ] ) ) { $new_notification['post_content'][ $add_field ] = $notification[ $add_field ]; - } elseif ( in_array( $add_field, array( 'plain_text', 'inc_user_info' ) ) ) { + } elseif ( in_array( $add_field, array( 'plain_text', 'inc_user_info' ), true ) ) { $new_notification['post_content'][ $add_field ] = 0; } else { $new_notification['post_content'][ $add_field ] = ''; diff --git a/classes/models/FrmDb.php b/classes/models/FrmDb.php index c91edb2236..29132ef46e 100644 --- a/classes/models/FrmDb.php +++ b/classes/models/FrmDb.php @@ -561,7 +561,7 @@ public static function esc_order( $order_query ) { $order = trim( reset( $order_query ) ); $safe_order = array( 'count(*)' ); - if ( ! in_array( strtolower( $order ), $safe_order ) ) { + if ( ! in_array( strtolower( $order ), $safe_order, true ) ) { $order = preg_replace( '/[^a-zA-Z0-9\-\_\.\+]/', '', $order ); } diff --git a/classes/models/FrmFormMigrator.php b/classes/models/FrmFormMigrator.php index f30e82d820..81cab16d35 100644 --- a/classes/models/FrmFormMigrator.php +++ b/classes/models/FrmFormMigrator.php @@ -303,7 +303,7 @@ protected function prepare_fields( $fields, &$form ) { $this->prepare_field( $field, $new_field ); - $in_section = ! empty( $this->current_section ) && ! in_array( $new_type, $this->fields_with_end() ) && $new_type !== 'break'; + $in_section = ! empty( $this->current_section ) && ! in_array( $new_type, $this->fields_with_end(), true ) && $new_type !== 'break'; if ( $in_section ) { $new_field['field_options']['in_section'] = $this->current_section['id']; @@ -311,7 +311,7 @@ protected function prepare_fields( $fields, &$form ) { $form['fields'][] = $new_field; - if ( in_array( $new_type, $this->fields_with_end() ) ) { + if ( in_array( $new_type, $this->fields_with_end(), true ) ) { $this->current_section = $field; } elseif ( $new_type === 'break' || $new_type === 'end_divider' ) { $this->current_section = array(); @@ -375,7 +375,7 @@ protected function maybe_add_end_fields( &$fields ) { $type = $this->get_field_type( $field ); $new_type = $this->convert_field_type( $type, $field ); - if ( ! in_array( $new_type, $with_end ) && $new_type !== 'break' ) { + if ( ! in_array( $new_type, $with_end, true ) && $new_type !== 'break' ) { continue; } @@ -384,7 +384,7 @@ protected function maybe_add_end_fields( &$fields ) { $open = array(); } - if ( in_array( $new_type, $with_end ) ) { + if ( in_array( $new_type, $with_end, true ) ) { $open = $field; } } diff --git a/classes/views/frm-form-actions/settings.php b/classes/views/frm-form-actions/settings.php index 90ac9270d2..2d55a39a1d 100644 --- a/classes/views/frm-form-actions/settings.php +++ b/classes/views/frm-form-actions/settings.php @@ -40,7 +40,7 @@