X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fpage.inc.php;h=76be815572f48b18284d7385509ba434c51ec35d;hb=fe5ccad978199cfbe71c583280b999769a27c9b2;hp=f9e93a49148939394d0ede9e2a5a6807ef136251;hpb=e93255ef54304c697ef7ac101247f23dc5f7b31f;p=platal.git diff --git a/modules/profile/page.inc.php b/modules/profile/page.inc.php index f9e93a4..76be815 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::get(Visibility::VIEW_PRIVATE)); while ($phone = $it->next()) { $success = ($phone->format() && $success); $phones[] = $phone->toFormArray();