@@ -81,7 +81,9 @@ |
||
| 81 | 81 | { |
| 82 | 82 | if ($children = $this->AllChildren()) { |
| 83 | 83 | foreach ($children as $child) { |
| 84 | - if (in_array($child->ID, $idList)) continue; |
|
| 84 | + if (in_array($child->ID, $idList)) { |
|
| 85 | + continue; |
|
| 86 | + } |
|
| 85 | 87 | |
| 86 | 88 | if ($child instanceof ProductHolder) { |
| 87 | 89 | $idList[] = $child->ID; |
@@ -141,11 +141,15 @@ |
||
| 141 | 141 | Settings > FoxyStripe > Categories |
| 142 | 142 | </a>' |
| 143 | 143 | )); |
| 144 | - if (class_exists('QuickAddNewExtension')) $catField->useAddNew('FoxyCartProductCategory', $source); |
|
| 144 | + if (class_exists('QuickAddNewExtension')) { |
|
| 145 | + $catField->useAddNew('FoxyCartProductCategory', $source); |
|
| 146 | + } |
|
| 145 | 147 | |
| 146 | 148 | // Product Images gridfield |
| 147 | 149 | $config = GridFieldConfig_RelationEditor::create(); |
| 148 | - if (class_exists('GridFieldSortableRows')) $config->addComponent(new GridFieldSortableRows('SortOrder')); |
|
| 150 | + if (class_exists('GridFieldSortableRows')) { |
|
| 151 | + $config->addComponent(new GridFieldSortableRows('SortOrder')); |
|
| 152 | + } |
|
| 149 | 153 | if (class_exists('GridFieldBulkImageUpload')) { |
| 150 | 154 | $config->addComponent(new GridFieldBulkUpload()); |
| 151 | 155 | $config->getComponentByType('GridFieldBulkUpload')->setUfConfig('folderName', 'Uploads/ProductImages'); |