From: Stéphane Jacob Date: Sat, 19 Jun 2010 01:19:50 +0000 (+0200) Subject: Prevents display of Corps when the profile is in none. X-Git-Tag: xorg/1.0.0~119 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=23d0cc48305306a8a07f23b31134c5b9e6cf66a0;p=platal.git Prevents display of Corps when the profile is in none. Signed-off-by: Stéphane Jacob --- diff --git a/include/profilefields.inc.php b/include/profilefields.inc.php index 4f83389..ffff5ad 100644 --- a/include/profilefields.inc.php +++ b/include/profilefields.inc.php @@ -507,7 +507,7 @@ class ProfileCorps extends ProfileField LEFT JOIN profile_corps_enum AS pceo ON (pceo.id = pc.original_corpsid) LEFT JOIN profile_corps_enum AS pcec ON (pcec.id = pc.current_corpsid) LEFT JOIN profile_corps_rank_enum AS pcrec ON (pcrec.id = pc.rankid) - WHERE pc.pid IN {?} AND pc.corps_pub IN {?} + WHERE pc.pid IN {?} AND pc.corps_pub IN {?} AND pceo.id != 1 ORDER BY ' . XDB::formatCustomOrder('pid', $pids), $pids, $visibility->levels());