Removes misplaced visibility.
authorStéphane Jacob <sj@m4x.org>
Tue, 18 Oct 2011 08:53:50 +0000 (10:53 +0200)
committerStéphane Jacob <sj@m4x.org>
Tue, 18 Oct 2011 08:54:02 +0000 (10:54 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/profile/page.inc.php

index 02f3316..f9e93a4 100644 (file)
@@ -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();