Fixes education inclusion.
[platal.git] / modules / profile / groups.inc.php
index ab33f21..26bfafd 100644 (file)
@@ -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) {