From: Guillaume Bandet Date: Tue, 12 Aug 2008 17:25:55 +0000 (+0200) Subject: Cleans ProfilePhones::value() to avoid a false notification when the profile is valid... X-Git-Tag: xorg/1.0.0~332^2~538 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=46cd778872eee0d7f7fa0be598f6ae6eb71f4f7e;p=platal.git Cleans ProfilePhones::value() to avoid a false notification when the profile is validated whithout changes in phone numbers. --- diff --git a/modules/profile/page.inc.php b/modules/profile/page.inc.php index ec5e3eb..7c60a6d 100644 --- a/modules/profile/page.inc.php +++ b/modules/profile/page.inc.php @@ -143,6 +143,7 @@ class ProfilePhones implements ProfileSetting if (@$phone['removed']) { unset($value[$key]); } else { + unset($phone['removed']); $phone['pub'] = $this->pub->value($page, 'pub', $phone['pub'], $s); $phone['tel'] = $this->tel->value($page, 'tel', $phone['tel'], $s); if(!isset($phone['type']) || ($phone['type'] != 'fixed' && $phone['type'] != 'mobile' && $phone['type'] != 'fax')) {