Merge pull request #5508 from lukecarbis/issue-5506

Fix notice that occurs from external function call
This commit is contained in:
Mike Jolley 2014-05-22 09:56:01 +01:00
commit b1c32f5724
1 changed files with 2 additions and 2 deletions

View File

@ -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();
return new WC_Settings_Integrations();