Skip to content

Commit

Permalink
Fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed May 5, 2015
1 parent 71b3f55 commit f71aa01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/Request/Sync.php
Expand Up @@ -488,7 +488,7 @@ protected function _handle()
(!isset($collection['getchanges']) && !empty($collection['synckey'])))) {

$max_windowsize = !empty($pingSettings['maximumwindowsize'])
? max($collection['windowsize'], $pingSettings['maximumwindowsize'])
? min($collection['windowsize'], $pingSettings['maximumwindowsize'])
: $collection['windowsize'];

if ((!empty($changecount) && $changecount > $max_windowsize) ||
Expand Down

0 comments on commit f71aa01

Please sign in to comment.