Merge pull request #2244 from entr/patch-1

Empty $integrations array prevents defining $links
This commit is contained in:
Coen Jacobs 2013-01-17 00:46:42 -08:00
commit 380268216e
1 changed files with 3 additions and 1 deletions

View File

@ -399,6 +399,8 @@ if ( ! function_exists( 'woocommerce_settings' ) ) {
$current_section = empty( $current_section ) ? key( $integrations ) : $current_section;
$links = array();
foreach ( $integrations as $integration ) {
$title = empty( $integration->method_title ) ? ucwords( $integration->id ) : ucwords( $integration->method_title );