]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-categories.php
Fixes for sql_patches removal vs. password reset of admin
[mailer.git] / inc / modules / member / what-categories.php
index 622735c3eea42430e2c50ae0103c7cab93f03999..9a4473c5417028236f88c92663aeab356f6cfbc6 100644 (file)
@@ -60,7 +60,7 @@ if ($cats > 0)
                $cnt = 0;
                foreach ($_POST['cat'] as $cat=>$joined)
                {
-                       if ($joined == 'N') $cnt++;
+                       if ($joined == "N") $cnt++;
                }
                if (($cats - $cnt) < $_CONFIG['least_cats'])
                {
@@ -121,7 +121,7 @@ if ($cats > 0)
                while (list($id, $cat) = SQL_FETCHROW($result))
                {
                        // Default he has not joined
-                       $JOINED_N = " checked"; $JOINED_Y = "";
+                       $JOINED_N = ' checked'; $JOINED_Y = "";
 
                        // Check category selection
                        $result_user = SQL_QUERY_ESC("SELECT id FROM "._MYSQL_PREFIX."_user_cats WHERE userid=%d AND cat_id=%d LIMIT 1",
@@ -130,13 +130,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'; $JOINED_N = ""; }
                        }
                         else
                        {
                                if (SQL_NUMROWS($result_user) == 1)
                                {
-                                       $JOINED_Y = " checked"; $JOINED_N = "";
+                                       $JOINED_Y = ' checked'; $JOINED_N = "";
                                }
 
                                // Free memory