Notice fixes

This commit is contained in:
Mike Jolley 2011-09-28 10:49:23 +01:00
parent 4e57002bc3
commit 6c41843aca
2 changed files with 3 additions and 3 deletions

View File

@ -169,7 +169,7 @@ function variable_product_write_panel_js() {
<?php
if ($attributes) foreach ($attributes as $attribute) :
if ( !$attribute['is_variation'] ) continue;
if ( !isset($attribute['is_variation']) || !$attribute['is_variation'] ) continue;
echo '<select name="attribute_' . sanitize_title($attribute['name']).'[\' + loop + \']"><option value="">'.__('Any ', 'woothemes').$woocommerce->attribute_label($attribute['name']).'&hellip;</option>';

View File

@ -267,8 +267,8 @@ function woocommerce_product_data_box() {
?>" placeholder="<?php _e('Pipe separate terms', 'woothemes'); ?>" />
<?php endif; ?>
</td>
<td class="center"><input type="checkbox" <?php checked($attribute['is_visible'], 1); ?> name="attribute_visibility[<?php echo $i; ?>]" value="1" /></td>
<td class="center enable_variation"><input type="checkbox" <?php checked($attribute['is_variation'], 1); ?> name="attribute_variation[<?php echo $i; ?>]" value="1" /></td>
<td class="center"><input type="checkbox" <?php if (isset($attribute['is_visible'])) checked($attribute['is_visible'], 1); ?> name="attribute_visibility[<?php echo $i; ?>]" value="1" /></td>
<td class="center enable_variation"><input type="checkbox" <?php if (isset($attribute['is_variation'])) checked($attribute['is_variation'], 1); ?> name="attribute_variation[<?php echo $i; ?>]" value="1" /></td>
<td class="center"><button type="button" class="hide_row button">&times;</button></td>
</tr><?php
endforeach;