Skip to content

Commit

Permalink
Avoid PHP deprecated error.
Browse files Browse the repository at this point in the history
  • Loading branch information
desrosj committed Dec 4, 2024
1 parent 012a73b commit 4acaada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/phpunit/tests/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public function test_set_sql_mode() {
$check_new_modes = $wpdb->get_var( 'SELECT @@SESSION.sql_mode;' );
$this->assertSameSets( $new_modes, explode( ',', $check_new_modes ) );

$wpdb->set_sql_mode( explode( ',', $current_modes ) );
$wpdb->set_sql_mode( empty( $current_modes ) ? '' : explode( ',', $current_modes ) );
}

/**
Expand Down

0 comments on commit 4acaada

Please sign in to comment.