Use different signatures for libkolab/libkolabxml function calls
This commit is contained in:
parent
d55e56c07c
commit
50b3b8e766
1 changed files with 5 additions and 1 deletions
|
@ -350,7 +350,11 @@ abstract class kolab_format
|
||||||
public function write($version = null)
|
public function write($version = null)
|
||||||
{
|
{
|
||||||
$this->init();
|
$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())
|
if (!$this->format_errors())
|
||||||
$this->update_uid();
|
$this->update_uid();
|
||||||
|
|
Loading…
Add table
Reference in a new issue