From 46cd778872eee0d7f7fa0be598f6ae6eb71f4f7e Mon Sep 17 00:00:00 2001 From: Guillaume Bandet Date: Tue, 12 Aug 2008 19:25:55 +0200 Subject: [PATCH] Cleans ProfilePhones::value() to avoid a false notification when the profile is validated whithout changes in phone numbers. --- modules/profile/page.inc.php | 1 + 1 file changed, 1 insertion(+) 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')) { -- 2.1.4