Anonymity/privacy extension 'removeip' added
[mailer.git] / inc / libs / register_functions.php
index a80cddd54c168508b66cd4f8661657b28f0bbeff..7a74af6a32c7fa7ce8ea36740aefe3302fbf1cb6 100644 (file)
@@ -133,13 +133,10 @@ function REGISTER_ADD_CATEGORY_TABLE ($MODE, $return=false)
                                'id'    => $id,
                        );
 
-                       if (($_POST['cat'][$id] == "Y") || (($_CONFIG['register_default'] == "Y") && (empty($_POST['cat'][$id]))))
-                       {
-                               $content['def_y'] = " checked";
-                       }
-                        else
-                       {
-                               $content['def_n'] = " checked";
+                       if (($_POST['cat'][$id] == "Y") || (($_CONFIG['register_default'] == "Y") && (empty($_POST['cat'][$id])))) {
+                               $content['def_y'] = " checked=\"checked\"";
+                       } else {
+                               $content['def_n'] = " checked=\"checked\"";
                        }
 
                        // Load template and switch color