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