mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 14:41:50 +01:00
dont update the content-history, if we run inside setup (admin-account-creation)
This commit is contained in:
parent
4e2ed78789
commit
591444be4b
@ -424,8 +424,8 @@ class bocontacts extends socontacts
|
|||||||
$contact['n_fn'] = $this->fullname($contact);
|
$contact['n_fn'] = $this->fullname($contact);
|
||||||
if (isset($contact['org_name'])) $contact['n_fileas'] = $this->fileas($contact);
|
if (isset($contact['org_name'])) $contact['n_fileas'] = $this->fileas($contact);
|
||||||
}
|
}
|
||||||
|
// we dont update the content-history, if we run inside setup (admin-account-creation)
|
||||||
if(!($this->error = parent::save($contact)))
|
if(!($this->error = parent::save($contact)) && is_object($GLOBALS['egw']->contenthistory))
|
||||||
{
|
{
|
||||||
$GLOBALS['egw']->contenthistory->updateTimeStamp('contacts', $contact['id'],$isUpdate ? 'modify' : 'add', time());
|
$GLOBALS['egw']->contenthistory->updateTimeStamp('contacts', $contact['id'],$isUpdate ? 'modify' : 'add', time());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user