fix for multidomain-install without domain-selectbox

This commit is contained in:
Ralf Becker 2003-11-14 17:43:49 +00:00
parent 4290a272f0
commit ad48945359

View File

@ -247,7 +247,8 @@
function split_login_domain($both,&$login,&$domain)
{
$parts = explode('@',$both);
$domain = array_pop($parts);
$domain = count($parts) > 1 ? array_pop($parts) :
$GLOBALS['phpgw_info']['server']['default_domain'];
$login = implode('@',$parts);
}
@ -286,11 +287,6 @@
$this->split_login_domain($session['session_lid'],$this->account_lid,$this->account_domain);
if ($this->account_domain == '')
{
$this->account_domain = $GLOBALS['phpgw_info']['server']['default_domain'];
}
$GLOBALS['phpgw_info']['user']['kp3'] = $this->kp3;
$this->update_dla();
@ -507,11 +503,6 @@
$now = time();
if (strstr($login,'@') === False)
{
$this->account_domain = $GLOBALS['phpgw_info']['server']['default_domain'];
}
//echo "<p>session::create(login='$login'): lid='$this->account_lid', domain='$this->account_domain'</p>\n";
$user_ip = $this->getuser_ip();