Cast relation object arguments into strings even if not set. This avoids fatal errors when calling the libkolabxml bindings with wrong function signatures

This commit is contained in:
Thomas Bruederli 2014-08-06 10:34:25 +02:00
parent 46315c8ad5
commit ca02fcbb37

View file

@ -64,7 +64,7 @@ class kolab_format_configuration extends kolab_format
break;
case 'relation':
$relation = new Relation($object['name'], $object['category']);
$relation = new Relation(strval($object['name']), strval($object['category']));
if ($object['color']) {
$relation->setColor($object['color']);