@@ -221,9 +221,12 @@ |
||
221 | 221 | $context = $this->context(); |
222 | 222 | $cntl = \Aimeos\Controller\Frontend::create( $context, 'customer' ); |
223 | 223 | |
224 | - try { |
|
224 | + try |
|
225 | + { |
|
225 | 226 | $id = $cntl->find( $addr->getEmail() )->getId(); |
226 | - } catch( \Exception $e ) { |
|
227 | + } |
|
228 | + catch( \Exception $e ) |
|
229 | + { |
|
227 | 230 | $id = $new ? $cntl->add( $addr->toArray() )->store()->get()->getId() : null; |
228 | 231 | } |
229 | 232 |