Skip to content

Commit

Permalink
Use German as default lang if no user is set
Browse files Browse the repository at this point in the history
If the session is expired during the checkout, there was an fatal error.
Now the default language will be used.
  • Loading branch information
suabo committed Nov 26, 2013
1 parent 4fcf3b7 commit 498d792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copy_this/modules/suabo/lfnds/core/lfndsfacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function getFacade($sMode = '', $sForeignId = '') {
$oViewConf = oxNew('oxviewconfig');
$sModulePath = $oViewConf->getModulePath('suabolfnds');
$oUser = oxSession::getInstance()->getUser();
($oUser->getLanguage() == 0 || $oUser->getLanguage() == -1) ? $sCountryCode = 'de' : $sCountryCode = 'en';
(!$oUser || $oUser->getLanguage() == 0 || $oUser->getLanguage() == -1) ? $sCountryCode = 'de' : $sCountryCode = 'en';
$sClientId = $myconfig->getConfigParam("sLfndsClientID");
$sApiKey = $myconfig->getConfigParam("sLfndsApiKey");
$sTheme = $myconfig->getConfigParam("sLfndsTheme");
Expand Down

0 comments on commit 498d792

Please sign in to comment.