X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fgroups.inc.php;h=26bfafd03e4ca5a56e24fc7d17e877011f8c91ef;hb=1dd218522cea6ae08998b0ca107c8fec608ddce8;hp=ab33f21570c344d696fcae61f81bfd9660637d73;hpb=cecdf74795e71ed038411915dad5e0dff6ea51fa;p=platal.git diff --git a/modules/profile/groups.inc.php b/modules/profile/groups.inc.php index ab33f21..26bfafd 100644 --- a/modules/profile/groups.inc.php +++ b/modules/profile/groups.inc.php @@ -39,7 +39,7 @@ class ProfileSettingSection implements ProfileSetting XDB::execute("UPDATE profiles SET section = {?} WHERE pid = {?}", - $value, $page->pid()); + ($value == 0) ? null : $value, $page->pid()); } public function getText($value) {