We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 378e225 + 910dab3 commit 7ea7701Copy full SHA for 7ea7701
includes/Classifai/Features/Feature.php
@@ -393,7 +393,7 @@ public function add_provider_fields() {
393
*/
394
protected function merge_settings( array $settings = [], array $defaults = [] ): array {
395
foreach ( $defaults as $key => $value ) {
396
- if ( ! isset( $settings[ $key ] ) ) {
+ if ( ! array_key_exists( $key, $settings ) ) {
397
$settings[ $key ] = $defaults[ $key ];
398
} elseif ( is_array( $value ) ) {
399
if ( is_array( $settings[ $key ] ) ) {
0 commit comments