summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-02-20 08:46:32 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-02-20 08:46:32 (GMT)
commitb847691f57634118b9df9ccb0768e43187833506 (patch)
treeba37b378112084c26a6211fec0f1750ffd981215
parent778eb3a5c84c3348f2fbcfdff7b6d2ea48bd4639 (diff)
downloadkolab-syncroton-b847691f57634118b9df9ccb0768e43187833506.tar.gz
Cast some data to string to workaround issue described in Bug #1635.
PHP Warning: DOMDocument::createTextNode() expects parameter 1 to be string
-rw-r--r--lib/kolab_sync_data.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/kolab_sync_data.php b/lib/kolab_sync_data.php
index 795d534..43371bc 100644
--- a/lib/kolab_sync_data.php
+++ b/lib/kolab_sync_data.php
@@ -971,7 +971,8 @@ abstract class kolab_sync_data implements Syncroton_Data_IData
}
if (!empty($value)) {
- $params['data'] = $value;
+ // cast to string to workaround issue described in Bug #1635
+ $params['data'] = (string) $value;
}
if (!isset($params['type'])) {