fix for foldersync loop, when users calendar is empty and ctag=0

This commit is contained in:
Philip Herbert 2011-04-04 21:56:37 +00:00
parent a8e8d82f64
commit 81a74f2069

View File

@ -952,7 +952,8 @@ class calendar_activesync implements activesync_plugin_write
if (!isset($this->calendar)) $this->calendar = new calendar_boupdate();
$ctag = $this->calendar->get_ctag($owner);
// workaround for syncstate = 0 when calendar is empty causes synctate to not return 0 but array resulting in foldersync loop
if ($ctag == 0) $ctag = 1;
$changes = array(); // no change
$syncstate_was = $syncstate;