correct isset

This commit is contained in:
Mike Jolley 2017-09-25 12:22:17 +01:00
parent da6a37c0d1
commit 45aaa22bb9
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<ul class="product_data_tabs wc-tabs">
<?php foreach ( self::get_product_data_tabs() as $key => $tab ) : ?>
<li class="<?php echo $key; ?>_options <?php echo $key; ?>_tab <?php echo if(isset($tab['class'])) implode( ' ' , (array) $tab['class'] ); ?>">
<li class="<?php echo $key; ?>_options <?php echo $key; ?>_tab <?php echo isset( $tab['class'] ) ? implode( ' ' , (array) $tab['class'] ) : ''; ?>">
<a href="#<?php echo $tab['target']; ?>"><span><?php echo esc_html( $tab['label'] ); ?></span></a>
</li>
<?php endforeach; ?>