Skip to content

Commit

Permalink
Merge pull request #80 from Z-Hub/68-folders-created-on-outlook-2021-…
Browse files Browse the repository at this point in the history
…get-duplicated

Fixed Folders created on Outlook 2021 get duplicated
  • Loading branch information
matidau committed Aug 8, 2024
1 parent b28d6af commit dfc83a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/default/diffbackend/diffstate.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ protected function getDiffTo($new) {
protected function updateState($type, $change) {
// Change can be a change or an add
if($type == "change") {
for($i=0; $i < count($this->syncstate); $i++) {
for($i=0; $i < count((array)$this->syncstate); $i++) {
if($this->syncstate[$i]["id"] == $change["id"]) {
$this->syncstate[$i] = $change;
return;
Expand All @@ -236,7 +236,7 @@ protected function updateState($type, $change) {
// Not found, add as new
$this->syncstate[] = $change;
} else {
for($i=0; $i < count($this->syncstate); $i++) {
for($i=0; $i < count((array)$this->syncstate); $i++) {
// Search for the entry for this item
if($this->syncstate[$i]["id"] == $change["id"]) {
if($type == "flags") {
Expand Down

0 comments on commit dfc83a9

Please sign in to comment.