From 0eddf06ab5516d57b9bd11b30aa257e90e50f6fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Tue, 18 Oct 2011 10:53:50 +0200 Subject: [PATCH] Removes misplaced visibility. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/profile/page.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.1.4