summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2012-11-02 12:45:05 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2012-11-02 12:45:05 (GMT)
commit50b3b8e766ca081f492521a4f502284e139c8915 (patch)
tree4f8aea9402f826e7645a55558af39a8a51dd4101
parentd55e56c07ca04bbe642e9b60c095c7938a16d424 (diff)
downloadroundcubemail-plugins-kolab-50b3b8e766ca081f492521a4f502284e139c8915.tar.gz
Use different signatures for libkolab/libkolabxml function calls
-rw-r--r--plugins/libkolab/lib/kolab_format.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/libkolab/lib/kolab_format.php b/plugins/libkolab/lib/kolab_format.php
index bedee44..760133b 100644
--- a/plugins/libkolab/lib/kolab_format.php
+++ b/plugins/libkolab/lib/kolab_format.php
@@ -350,7 +350,11 @@ abstract class kolab_format
public function write($version = null)
{
$this->init();
- $this->xmldata = call_user_func($this->libfunc($this->write_func), $this->obj, $this->libversion($version), self::PRODUCT_ID);
+ $write_func = $this->libfunc($this->write_func);
+ if (is_array($write_func))
+ $this->xmldata = call_user_func($write_func, $this->obj, $this->libversion($version), self::PRODUCT_ID);
+ else
+ $this->xmldata = call_user_func($write_func, $this->obj, self::PRODUCT_ID);
if (!$this->format_errors())
$this->update_uid();