contains only the default blank phone number in the main page of
profile/edit.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
$phones = array();
foreach ($data as $item) {
$phone = new Phone($item);
- $success = ($phone->format() && $success);
+ $success = (($phone->isEmpty() || $phone->format()) && $success);
if (!$phone->isEmpty()) {
$phones[] = call_user_func(array($phone, $function));
}
Phone::savePhones($value, $page->pid(), Phone::LINK_PROFILE);
}
- public function getText($value) {
+ public function getText($value)
+ {
return Phone::formArrayToString($value);
}
}