@@ -309,9 +309,12 @@ |
||
309 | 309 | if( $userid = Auth::guard( $guard )->id() ) |
310 | 310 | { |
311 | 311 | $context->setGroupIds( function() use ( $context, $userid ) { |
312 | - try { |
|
312 | + try |
|
313 | + { |
|
313 | 314 | return \Aimeos\MShop::create( $context, 'customer' )->get( $userid, ['group'] )->getGroups(); |
314 | - } catch( \Exception $e ) { |
|
315 | + } |
|
316 | + catch( \Exception $e ) |
|
317 | + { |
|
315 | 318 | return []; |
316 | 319 | } |
317 | 320 | } ); |