@@ -410,16 +410,13 @@ |
||
410 | 410 | if( $value instanceof \Aimeos\MShop\Common\Item\Address\Iface ) |
411 | 411 | { |
412 | 412 | $this->get()->setAddress( $address->copyFrom( $value ), $type ); |
413 | - } |
|
414 | - else if( is_array( $value ) ) |
|
413 | + } else if( is_array( $value ) ) |
|
415 | 414 | { |
416 | 415 | $this->get()->setAddress( $this->setAddressFromArray( $address, $value ), $type ); |
417 | - } |
|
418 | - else if( $value === null ) |
|
416 | + } else if( $value === null ) |
|
419 | 417 | { |
420 | 418 | $this->get()->deleteAddress( $type ); |
421 | - } |
|
422 | - else |
|
419 | + } else |
|
423 | 420 | { |
424 | 421 | $msg = $context->getI18n()->dt( 'controller/frontend', 'Invalid value for address type "%1$s"' ); |
425 | 422 | throw new \Aimeos\Controller\Frontend\Basket\Exception( sprintf( $msg, $type ) ); |