... adds an additional check to make sure we have
user & time
Change-Id: Ic492fcb81a02d3f2696d165b9435ecd6ee42f4a2
Reviewed-on: http://gerrit.tine20.com/customers/3563
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
*/
protected function _getCommonModlog($_model, $_backend, $_updateMetaData = array(), $_recordId = NULL)
{
- if (empty($_updateMetaData)) {
+ if (empty($_updateMetaData) || ! isset($_updateMetaData['last_modified_by']) || ! isset($_updateMetaData['last_modified_time'])) {
list($currentAccountId, $currentTime) = Tinebase_Timemachine_ModificationLog::getCurrentAccountIdAndTime();
} else {
$currentAccountId = $_updateMetaData['last_modified_by'];