worked around stupid php5.2 empty haystack warnings

This commit is contained in:
Ralf Becker 2007-04-30 05:34:40 +00:00
parent a9c94a4d3d
commit d7eebb964a

View File

@ -131,7 +131,7 @@
if (isset($_POST['login'])) // on login
{
$GLOBALS['login'] = $_POST['login'];
if (strstr($GLOBALS['login'],'@') === False || count($GLOBALS['egw_domain']) == 1)
if (strpos($GLOBALS['login'],'@') === False || count($GLOBALS['egw_domain']) == 1)
{
$GLOBALS['login'] .= '@' . get_var('logindomain',array('POST'),$GLOBALS['egw_info']['server']['default_domain']);
}