X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fpage.inc.php;h=c6eae36768cea8288d9162f3844c4f429e54a4c5;hb=6cce7840e69bc0b6647e1bc5ea3437a925cd63a0;hp=242733fea08130338fac197a44a16b945c2e8e2f;hpb=f3ba9a54052e6841bd0edb15249936a1180adbae;p=platal.git diff --git a/modules/profile/page.inc.php b/modules/profile/page.inc.php index 242733f..c6eae36 100644 --- a/modules/profile/page.inc.php +++ b/modules/profile/page.inc.php @@ -108,7 +108,7 @@ class ProfileSettingPhones implements ProfileSetting $phones = array(); if (is_null($value)) { - $it = Phone::iterate(array($page->pid()), array(Phone::LINK_PROFILE), array(0)); + $it = Phone::iterate(array($page->pid()), array(Phone::LINK_PROFILE), array(0), Visibility::defaultForEdit()); while ($phone = $it->next()) { $success = ($phone->format() && $success); $phones[] = $phone->toFormArray();