From 3a649523553bab610f9bbd30c986ec392a9151d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 24 Oct 2011 22:04:28 +0200 Subject: [PATCH] Publicity restriction should be the other way around here. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/profile/jobs.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/profile/jobs.inc.php b/modules/profile/jobs.inc.php index d29a5ef..268d5f3 100644 --- a/modules/profile/jobs.inc.php +++ b/modules/profile/jobs.inc.php @@ -178,7 +178,7 @@ class ProfileSettingJob implements ProfileSetting } } - if (Visibility::isLessRestrictive($job['w_email_pub'], $job_level)) { + if (Visibility::isLessRestrictive($job_level, $job['w_email_pub'])) { $job['w_email_pub'] = $job_level; } $job['w_phone'] = Phone::formatFormArray($job['w_phone'], $s, $job_level); @@ -248,7 +248,7 @@ class ProfileSettingJob implements ProfileSetting // Force the address publicity to be at least as restricted as // the job publicity. $job_level = $job['pub']; - if (Visibility::isLessRestrictive($address->pub, $job_level)) { + if (Visibility::isLessRestrictive($job_level, $address->pub)) { $address->pub = $job_level; } $job['w_address'] = $address->toFormArray(); -- 2.1.4