mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +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
|
// update attendees/delegates
|
||||||
if (array_key_exists('info_responsible', $values) || array_key_exists('info_cc', $values))
|
if (array_key_exists('info_responsible', $values) || array_key_exists('info_cc', $values))
|
||||||
{
|
{
|
||||||
$users = empty($values['info_responsible']) ? array() :
|
if (!is_array($values['info_responsible']))
|
||||||
array_combine($values['info_responsible'], array_fill(0, count($values['info_responsible']), null));
|
{
|
||||||
|
$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)
|
foreach(!empty($values['info_cc']) ? explode(',', $values['info_cc']) : array() as $email)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user