mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 05:49:03 +01:00
Fix email and type settings
This commit is contained in:
parent
0efa6f0687
commit
3b84c9d15c
@ -255,7 +255,21 @@
|
||||
break;
|
||||
case "EMAIL":
|
||||
switch ($field[1]) {
|
||||
case "WORK":
|
||||
$buffer[$i]["email"] = $values[0];
|
||||
$buffer[$i]["email_type"] = $field[2];
|
||||
break;
|
||||
case "HOME":
|
||||
$buffer[$i]["email_home"] = $values[0];
|
||||
$buffer[$i]["email_home_type"] = $field[2];
|
||||
break;
|
||||
default:
|
||||
if($buffer[$i]["email"]) {
|
||||
$buffer[$i]["email_type"] = $field[2];
|
||||
} elseif (!$buffer[$i]["email"]) {
|
||||
$buffer[$i]["email"] = $values[0];
|
||||
$buffer[$i]["email_type"] = $field[1];
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user