@@ -575,9 +575,11 @@ |
||
575 | 575 | |
576 | 576 | $map = $this->getMappedChunk( $list, $mapping ); |
577 | 577 | |
578 | - if( isset( $map[0] ) ) // there can only be one chunk for the base product data |
|
578 | + if( isset( $map[0] ) ) { |
|
579 | + // there can only be one chunk for the base product data |
|
579 | 580 | { |
580 | 581 | $type = $this->checkType( $this->getValue( $map[0], 'product.type', $product->getType() ) ); |
582 | + } |
|
581 | 583 | |
582 | 584 | $product = $product->fromArray( $map[0], true ); |
583 | 585 | $product = $manager->saveItem( $product->setType( $type ) ); |
@@ -154,8 +154,7 @@ |
||
154 | 154 | $interval = new \DateInterval( $item->getInterval() ); |
155 | 155 | $date = date_create( $item->getTimeCreated() )->add( $interval )->format( 'Y-m-d' ); |
156 | 156 | $item = $item->setDateNext( $date )->setPeriod( 1 ); |
157 | - } |
|
158 | - elseif( $item->getTimeCreated() < $date ) |
|
157 | + } elseif( $item->getTimeCreated() < $date ) |
|
159 | 158 | { |
160 | 159 | $item->setStatus( 0 ); |
161 | 160 | } |