forked from extern/egroupware
fix PHP Warning array_value expects first parameter to be array
This commit is contained in:
parent
9cd7906852
commit
86bd575a74
@ -2567,7 +2567,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