XDB::execute("UPDATE profiles
SET section = {?}
WHERE pid = {?}",
- $value, $page->pid());
+ ($value == 0) ? null : $value, $page->pid());
}
public function getText($value) {
}
}
-class ProfileSettingGroups extends ProfilePage
+class ProfilePageGroups extends ProfilePage
{
protected $pg_template = 'profile/groups.tpl';