A first attempt to fix the following warning:
PHP Warning: implode(): Invalid arguments passed in /usr/share/kolab-syncroton/lib/kolab_sync_data.php on line 752
machniak |
A first attempt to fix the following warning:
PHP Warning: implode(): Invalid arguments passed in /usr/share/kolab-syncroton/lib/kolab_sync_data.php on line 752
None
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
This way you can end up with true. I'd rather make sure $relation['members'] is an array. e.g.
'members' => implode("\n", (array) $relation['members']),
If $relation['members'] is a string though, converting it to an array would void the validity, right?
I thought that
'members' => empty($relation['members']) ?: implode("\n", $relation['members']),
would end up with 'members' => null, but I see your point.