@@ -365,16 +365,13 @@ |
||
365 | 365 | if( $value instanceof \Aimeos\MShop\Common\Item\Address\Iface ) |
366 | 366 | { |
367 | 367 | $this->get()->addAddress( $address->copyFrom( $value ), $type, 0 ); |
368 | - } |
|
369 | - else if( is_array( $value ) ) |
|
368 | + } else if( is_array( $value ) ) |
|
370 | 369 | { |
371 | 370 | $this->get()->addAddress( $this->setAddressFromArray( $address, $value ), $type, 0 ); |
372 | - } |
|
373 | - else if( $value === null ) |
|
371 | + } else if( $value === null ) |
|
374 | 372 | { |
375 | 373 | $this->get()->deleteAddress( $type ); |
376 | - } |
|
377 | - else |
|
374 | + } else |
|
378 | 375 | { |
379 | 376 | $msg = $context->getI18n()->dt( 'controller/frontend', 'Invalid value for address type "%1$s"' ); |
380 | 377 | throw new \Aimeos\Controller\Frontend\Basket\Exception( sprintf( $msg, $type ) ); |