Make sure end( gets a variable to work around strict notices

This commit is contained in:
Coen Jacobs 2013-08-07 14:15:53 +00:00
parent b2b64b9d06
commit 930cd6125f
1 changed files with 3 additions and 1 deletions

View File

@ -60,8 +60,10 @@ class WC_Settings_Page {
echo '<ul class="subsubsub">';
$array_keys = array_keys( $sections );
foreach ( $sections as $id => $label )
echo '<li><a href="' . admin_url( 'admin.php?page=woocommerce_settings&tab=' . $this->id . '&section=' . sanitize_title( $id ) ) . '" class="' . ( $current_section == $id ? 'current' : '' ) . '">' . $label . '</a> ' . ( end( array_keys( $sections ) ) == $id ? '' : '|' ) . ' </li>';
echo '<li><a href="' . admin_url( 'admin.php?page=woocommerce_settings&tab=' . $this->id . '&section=' . sanitize_title( $id ) ) . '" class="' . ( $current_section == $id ? 'current' : '' ) . '">' . $label . '</a> ' . ( end( $array_keys ) == $id ? '' : '|' ) . ' </li>';
echo '</ul><br class="clear" />';
}