Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
- #742: Sub domain was hidden when editing profile -FRU
- #752: Don't show vcard link on profile when the person is dead -FRU
- #764: Fix mentoring edition page -FRU
+ - #790: Ensure we always have a current address -FRU
* Search:
- #741: Mentor search in advanced search -FRU
}
}
$current = 0;
+ $success = true;
foreach ($value as $key=>&$adr) {
if (@$adr['current']) {
$current++;
}
}
- if (!$init && $current != 1 && count($value) > 0) {
+ if ($current == 0 && count($value) > 0) {
+ foreach ($value as $key=>&$adr) {
+ $adr['current'] = true;
+ break;
+ }
+ } else if ($current > 1) {
$success = false;
- } else {
- $success = true;
}
foreach ($value as $key=>&$adr) {
$ls = true;