mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 15:33:23 +01:00
fix PHP TypeError count() Argument #1 ($value) must be of type Countable|array, string given
This commit is contained in:
parent
35a9a9bda5
commit
0da5d651f8
@ -688,8 +688,11 @@ class infolog_so
|
||||
// update attendees/delegates
|
||||
if (array_key_exists('info_responsible', $values) || array_key_exists('info_cc', $values))
|
||||
{
|
||||
$users = empty($values['info_responsible']) ? array() :
|
||||
array_combine($values['info_responsible'], array_fill(0, count($values['info_responsible']), null));
|
||||
if (!is_array($values['info_responsible']))
|
||||
{
|
||||
$values['info_responsible'] = empty($values['info_responsible']) ? [] : explode(',', $values['info_responsible']);
|
||||
}
|
||||
$users = array_combine($values['info_responsible'], array_fill(0, count($values['info_responsible']), null));
|
||||
|
||||
foreach(!empty($values['info_cc']) ? explode(',', $values['info_cc']) : array() as $email)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user