fix pref storing problem, when no ActiveMailProfile is selected as pref; but a default is set (and Active)

This commit is contained in:
Klaus Leithoff 2013-05-31 10:37:23 +00:00
parent 647fce9f12
commit 256740baf5

View File

@ -487,7 +487,7 @@ class felamimail_bo
$bopreferences->setProfileActive(false);
if ($icServerID>0) $bopreferences->setProfileActive(true,$icServerID);
}
if (empty($hook_data['prefs']['ActiveProfileID'])) return lang('Error').': '.lang("Active ProfileID should not be empty");
if (empty($hook_data['prefs']['ActiveProfileID'])&&empty($GLOBALS['egw_info']['user']['preferences']['felamimail']['ActiveProfileID'])) return lang('Error').': '.lang("Active ProfileID should not be empty");
}
}