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
Differential D455
PHP Warning: implode(): Invalid arguments passed vanmeeuwen on Jul 3 2017, 11:08 AM. Authored by Tags None Referenced Files
Subscribers
Details
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
Diff Detail
Event TimelineComment Actions 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']), Comment Actions 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. |