From: Stéphane Jacob Date: Mon, 24 Oct 2011 20:04:28 +0000 (+0200) Subject: Publicity restriction should be the other way around here. X-Git-Tag: xorg/1.1.4~55^2 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=4dc5be4459eaacfa27d75b8e6afa3b97bd7094dc;p=platal.git Publicity restriction should be the other way around here. Signed-off-by: Stéphane Jacob --- 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();