fixing bug, when preset is already set

This commit is contained in:
Klaus Leithoff 2011-12-21 14:13:36 +00:00
parent 483d33fb76
commit 926e3bfca7

View File

@ -226,6 +226,11 @@
$this->bocompose->preferencesArray['attachVCardAtCompose']))
{
$alwaysAttachVCardAtCompose = true;
if (!is_array($_REQUEST['preset']['file']) && !empty($_REQUEST['preset']['file']))
{
$f = $_REQUEST['preset']['file'];
$_REQUEST['preset']['file'] = array($f);
}
$_REQUEST['preset']['file'][] = "vfs://default/apps/addressbook/".$GLOBALS['egw']->accounts->id2name($GLOBALS['egw_info']['user']['account_id'],'person_id')."/.entry";
}
if (is_array($_REQUEST['preset']))