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:
parent
46315c8ad5
commit
ca02fcbb37
1 changed files with 1 additions and 1 deletions
|
@ -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']);
|
||||
|
|
Loading…
Add table
Reference in a new issue