Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/Horde/ActiveSync/State/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,12 @@ protected function _getFolderChanges()
$this->_logger->meta('STATE: Initializing folder diff engine');
$folderlist = $this->_backend->getFolderList();
if ($folderlist === false) {
// The backend could not produce a folder list (e.g. the mail
// server is temporarily unavailable). Report no changes rather
// than leaving $this->_changes unset (which would fatal on a
// later count()) or diffing against an empty list (which would
// delete the client's folders).
$this->_changes = [];
return false;
}
// @TODO Remove in H6. We need to ensure we have 'serverid' in the
Expand Down
Loading