@@ -103,8 +103,7 @@ discard block |
||
| 103 | 103 | $this->context->setI18n( $this->i18n->get( array( $localeItem->getLanguageId() ) ) ); |
| 104 | 104 | |
| 105 | 105 | $config->apply( $localeItem->getSiteItem()->getConfig() ); |
| 106 | - } |
|
| 107 | - else |
|
| 106 | + } else |
|
| 108 | 107 | { |
| 109 | 108 | $this->context->setI18n( $this->i18n->get( $this->languages( $this->context ) ) ); |
| 110 | 109 | } |
@@ -313,9 +312,12 @@ discard block |
||
| 313 | 312 | if( $userid = Auth::guard( $guard )->id() ) |
| 314 | 313 | { |
| 315 | 314 | $context->setGroupIds( function() use ( $context, $userid ) { |
| 316 | - try { |
|
| 315 | + try |
|
| 316 | + { |
|
| 317 | 317 | return \Aimeos\MShop::create( $context, 'customer' )->get( $userid, ['customer/group'] )->getGroups(); |
| 318 | - } catch( \Exception $e ) { |
|
| 318 | + } |
|
| 319 | + catch( \Exception $e ) |
|
| 320 | + { |
|
| 319 | 321 | return []; |
| 320 | 322 | } |
| 321 | 323 | } ); |