handle problem with empty ActiveProfileID

This commit is contained in:
Klaus Leithoff 2013-01-23 10:24:01 +00:00
parent 6f1dd6fc41
commit 197fc098e8

View File

@ -175,7 +175,7 @@ class felamimail_bo
{
if ($_profileID == 0)
{
if (isset($GLOBALS['egw_info']['user']['preferences']['felamimail']['ActiveProfileID']))
if (isset($GLOBALS['egw_info']['user']['preferences']['felamimail']['ActiveProfileID']) && !empty($GLOBALS['egw_info']['user']['preferences']['felamimail']['ActiveProfileID']))
{
$profileID = (int)$GLOBALS['egw_info']['user']['preferences']['felamimail']['ActiveProfileID'];
}