Page MenuHomePhorge

D5673.1775259597.diff
No OneTemporary

Authored By
Unknown
Size
866 B
Referenced Files
None
Subscribers
None

D5673.1775259597.diff

diff --git a/plugins/libkolab/lib/kolab_subscriptions.php b/plugins/libkolab/lib/kolab_subscriptions.php
--- a/plugins/libkolab/lib/kolab_subscriptions.php
+++ b/plugins/libkolab/lib/kolab_subscriptions.php
@@ -175,7 +175,10 @@
}
// Update subscriptions if any folder was removed from the list
- if (!empty($update)) {
+ // The underlying kolab_storage::list_folders returns an empty array on error,
+ // so we must not proceed in that case, otherwise we reset the subscriptions.
+ // FIXME: We should be detecting the error and throw an exception, but we currently can't.
+ if (!empty($update) && !empty($folders)) {
$data = array_map(function ($v) { return $v[0]; }, $result);
$this->update_subscriptions($deviceid, $type, $data);
}

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 3, 11:39 PM (12 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18827291
Default Alt Text
D5673.1775259597.diff (866 B)

Event Timeline