diff --git a/includes/admin/settings/class-wc-settings-integrations.php b/includes/admin/settings/class-wc-settings-integrations.php index 97607fc8c2a..d1c5febabe6 100644 --- a/includes/admin/settings/class-wc-settings-integrations.php +++ b/includes/admin/settings/class-wc-settings-integrations.php @@ -44,7 +44,7 @@ class WC_Settings_Integrations extends WC_Settings_Page { $integrations = WC()->integrations->get_integrations(); - if ( ! $current_section ) + if ( ! $current_section && ! empty( $integrations ) ) $current_section = current( $integrations )->id; foreach ( $integrations as $integration ) { @@ -71,4 +71,4 @@ class WC_Settings_Integrations extends WC_Settings_Page { endif; -return new WC_Settings_Integrations(); \ No newline at end of file +return new WC_Settings_Integrations();