mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-16 13:03:16 +01:00
fix PHP Warning array_value expects first parameter to be array
This commit is contained in:
parent
93b8d489c2
commit
aed984148d
@ -2562,7 +2562,7 @@ class mail_compose
|
||||
if (!empty($addr)) $_emailAddressList[]=$addr;
|
||||
}
|
||||
}
|
||||
return array_values($_emailAddressList);
|
||||
return is_array($_emailAddressList) ? array_values($_emailAddressList) : (array)$_emailAddressList;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user