From: Stéphane Jacob Date: Tue, 18 Oct 2011 08:53:50 +0000 (+0200) Subject: Removes misplaced visibility. X-Git-Tag: xorg/1.1.4~90 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=0eddf06ab5516d57b9bd11b30aa257e90e50f6fc;p=platal.git Removes misplaced visibility. Signed-off-by: Stéphane Jacob --- diff --git a/modules/profile/page.inc.php b/modules/profile/page.inc.php index 02f3316..f9e93a4 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), Visibility::defaultForEdit()); + $it = Phone::iterate(array($page->pid()), array(Phone::LINK_PROFILE), array(0)); while ($phone = $it->next()) { $success = ($phone->format() && $success); $phones[] = $phone->toFormArray();