]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-categories.php
Anonymity/privacy extension 'removeip' added
[mailer.git] / inc / modules / member / what-categories.php
index fcb03bd042f9461d7ea30bf739933989e3ff9d75..c9e9d2fefea7db2bc5e8be17255ebcaf3d491989 100644 (file)
@@ -118,7 +118,7 @@ if ($cats > 0)
                while (list($id, $cat) = SQL_FETCHROW($result))
                {
                        // Default he has not joined
-                       $JOINED_N = " checked"; $JOINED_Y = "";
+                       $JOINED_N = " checked=\"checked\""; $JOINED_Y = "";
 
                        // Check category selection
                        $result_user = SQL_QUERY_ESC("SELECT id FROM "._MYSQL_PREFIX."_user_cats WHERE userid=%s AND cat_id=%s LIMIT 1",
@@ -127,13 +127,13 @@ if ($cats > 0)
                        // When we found an entry don't read it, just change the JOINED_x variables
                        if (isset($_POST['cat']))
                        {
-                               if ($_POST['cat'][$id] =='Y') { $JOINED_Y = " checked"; $JOINED_N = ""; }
+                               if ($_POST['cat'][$id] =='Y') { $JOINED_Y = " checked=\"checked\""; $JOINED_N = ""; }
                        }
                         else
                        {
                                if (SQL_NUMROWS($result_user) == 1)
                                {
-                                       $JOINED_Y = " checked"; $JOINED_N = "";
+                                       $JOINED_Y = " checked=\"checked\""; $JOINED_N = "";
                                }
 
                                // Free memory