Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117792960
D5673.1775259597.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
866 B
Referenced Files
None
Subscribers
None
D5673.1775259597.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D5673: Avoid resetting subscriptions if we fail to list the folders
Attached
Detach File
Event Timeline