mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
remove +/- prefix, as it is not part of email but operator
This commit is contained in:
parent
e30794e61b
commit
4d62d34fac
@ -444,10 +444,11 @@ function do_edit_mail($type, array $arg0s)
|
|||||||
* Set, add or remove from array depending on $mod[0][0] being '+', '-' or something else (set)
|
* Set, add or remove from array depending on $mod[0][0] being '+', '-' or something else (set)
|
||||||
*
|
*
|
||||||
* @param array& $arr
|
* @param array& $arr
|
||||||
* @param array $mod eg. ["+some-alias@egroupware.org","other-alias@egroupware.org"] will add all given alias to $arr
|
* @param array& $mod eg. ["+some-alias@egroupware.org","other-alias@egroupware.org"] will add all given alias to $arr
|
||||||
|
* on return optional +/- prefix has been removed
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
function array_modify(array &$arr, array $mod)
|
function array_modify(array &$arr, array &$mod)
|
||||||
{
|
{
|
||||||
switch($mod[0][0])
|
switch($mod[0][0])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user