dont update the content-history, if we run inside setup (admin-account-creation)

This commit is contained in:
Ralf Becker 2006-06-18 05:03:35 +00:00
parent 4e2ed78789
commit 591444be4b

View File

@ -424,8 +424,8 @@ class bocontacts extends socontacts
$contact['n_fn'] = $this->fullname($contact);
if (isset($contact['org_name'])) $contact['n_fileas'] = $this->fileas($contact);
}
if(!($this->error = parent::save($contact)))
// we dont update the content-history, if we run inside setup (admin-account-creation)
if(!($this->error = parent::save($contact)) && is_object($GLOBALS['egw']->contenthistory))
{
$GLOBALS['egw']->contenthistory->updateTimeStamp('contacts', $contact['id'],$isUpdate ? 'modify' : 'add', time());
}