Passed
Pull Request — master (#193)
by
unknown
08:33
created
templates/client/html/catalog/detail/body.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,9 +54,10 @@
 block discarded – undo
54 54
         $preSelectVariantAttributes = [];
55 55
         if ($_GET['productId'] && is_numeric($_GET['productId'])):
56 56
 
57
-            if(($listItem = $this->detailProductItem->getListItem( 'product', 'default', (int) $_GET['productId'] ) ) && ( $product = $listItem->getRefItem() ) )
58
-
57
+            if(($listItem = $this->detailProductItem->getListItem( 'product', 'default', (int) $_GET['productId'] ) ) && ( $product = $listItem->getRefItem() ) ) {
58
+            
59 59
                     $attributes = $product->getRefItems('attribute',null,'variant');
60
+            }
60 61
 
61 62
                     foreach($attributes as $attribId => $attribute):
62 63
                         $preSelectVariantAttributes[$attribute->getType()] =  $attribute->getId();
Please login to merge, or discard this patch.