Completed
Push — master ( 107c7e...c368cf )
by
unknown
12:56
created
includes/modules/wps_cart/templates/frontend/cart/cart.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
  if( !$account_origin ) : ?>
3 5
 <div id="wps_cart_error_container" class="wps-alert-error"></div>
4 6
 <?php endif; ?>
@@ -37,8 +39,9 @@  discard block
 block discarded – undo
37 39
 			if ( count($product_attribute_order_detail) > 0  && is_array($product_attribute_order_detail) ) {
38 40
 				foreach ( $product_attribute_order_detail as $product_attr_group_id => $product_attr_group_detail) {
39 41
 					foreach ( $product_attr_group_detail['attribut'] as $position => $attribute_def) {
40
-						if ( !empty($attribute_def->code) )
41
-							$output_order[$attribute_def->code] = $position;
42
+						if ( !empty($attribute_def->code) ) {
43
+													$output_order[$attribute_def->code] = $position;
44
+						}
42 45
 					}
43 46
 				}
44 47
 			}
Please login to merge, or discard this patch.