X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fgroups.inc.php;h=26bfafd03e4ca5a56e24fc7d17e877011f8c91ef;hb=1dd218522cea6ae08998b0ca107c8fec608ddce8;hp=f5e29410e26d02316b96e70e0389660dd3f78258;hpb=4abb0fe4bcefc73a18891e9768640d8811a09acc;p=platal.git diff --git a/modules/profile/groups.inc.php b/modules/profile/groups.inc.php index f5e2941..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) { @@ -96,7 +96,7 @@ class ProfileSettingBinets implements ProfileSetting } } -class ProfileSettingGroups extends ProfilePage +class ProfilePageGroups extends ProfilePage { protected $pg_template = 'profile/groups.tpl';