Cleans ProfilePhones::value() to avoid a false notification when the profile is valid...
authorGuillaume Bandet <guillaume.bandet@polytechnique.org>
Tue, 12 Aug 2008 17:25:55 +0000 (19:25 +0200)
committerGuillaume Bandet <guillaume.bandet@polytechnique.org>
Tue, 12 Aug 2008 17:25:55 +0000 (19:25 +0200)
modules/profile/page.inc.php

index ec5e3eb..7c60a6d 100644 (file)
@@ -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')) {