if no domain selectbox, only store the logindomain, if its realy set

This commit is contained in:
Ralf Becker 2005-10-10 07:55:38 +00:00
parent 2a05447886
commit 822e08e0ff

View File

@ -384,7 +384,8 @@
if(!$GLOBALS['egw_info']['server']['show_domain_selectbox']) if(!$GLOBALS['egw_info']['server']['show_domain_selectbox'])
{ {
/* trick to make domain section disapear */ /* trick to make domain section disapear */
$tmpl->set_var('domain_selection','<input type="hidden" name="logindomain" value="'.htmlspecialchars($GLOBALS['egw_info']['user']['domain']).'" />'); $tmpl->set_var('domain_selection',$GLOBALS['egw_info']['user']['domain'] ?
'<input type="hidden" name="logindomain" value="'.htmlspecialchars($GLOBALS['egw_info']['user']['domain']).'" />' : '');
} }
foreach($_GET as $name => $value) foreach($_GET as $name => $value)