Prefer empty function over ! count for this #2246

This commit is contained in:
Coen Jacobs 2013-01-17 09:44:33 +01:00
parent 93e55e19e0
commit b62e3eca17
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ if ( ! function_exists( 'woocommerce_settings' ) ) {
'integration' => __( 'Integration', 'woocommerce' )
);
if ( ! count( $woocommerce->integrations->get_integrations() ) )
if ( empty( $woocommerce->integrations->get_integrations() ) )
unset( $tabs['integration'] );
$tabs = apply_filters('woocommerce_settings_tabs_array', $tabs);