Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117782075
D5226.1775248985.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D5226.1775248985.diff
View Options
diff --git a/lib/ext/Syncroton/Model/AXMLEntry.php b/lib/ext/Syncroton/Model/AXMLEntry.php
--- a/lib/ext/Syncroton/Model/AXMLEntry.php
+++ b/lib/ext/Syncroton/Model/AXMLEntry.php
@@ -50,7 +50,7 @@
foreach ($this->_elements as $elementName => $value) {
// skip empty values
- if ($value === null || $value === '' || (is_array($value) && empty($value))) {
+ if ($value === null || (is_array($value) && empty($value))) {
continue;
}
diff --git a/lib/kolab_sync_data_contacts.php b/lib/kolab_sync_data_contacts.php
--- a/lib/kolab_sync_data_contacts.php
+++ b/lib/kolab_sync_data_contacts.php
@@ -201,6 +201,12 @@
}
}
+ // Outlook's synchronization will break with an empty contact (no nodes under ApplicationData),
+ // so we make sure to always set a property (an empty name is enough as long as there is an XML node).
+ if (empty($result)) {
+ $result['firstName'] = '';
+ }
+
return new Syncroton_Model_Contact($result);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 8:43 PM (2 h, 42 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18826419
Default Alt Text
D5226.1775248985.diff (1 KB)
Attached To
Mode
D5226: Make sure we always have at least a name in the contact
Attached
Detach File
Event Timeline