]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-categories.php
login bonus will no longer be payed when turned off, "Y/N" rewritten to 'Y/N'
[mailer.git] / inc / modules / member / what-categories.php
index 13e65235e32ef219639a97f2a4fbdd1e90150011..659673b732168c680ff1932c6d3b784e5254372c 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'])
                {
@@ -74,7 +74,7 @@ if ($cats > 0)
                {
                        switch ($joined)
                        {
-                               case "Y":
+                               case 'Y':
                                        $sql = "";
                                        $result_user = SQL_QUERY_ESC("SELECT id FROM "._MYSQL_PREFIX."_user_cats WHERE userid=%d AND cat_id=%d LIMIT 1",
                                         array($UID, bigintval($cat)), __FILE__, __LINE__);
@@ -90,7 +90,7 @@ if ($cats > 0)
                                        }
                                        break;
 
-                               case "N":
+                               case 'N':
                                        $sql = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_user_cats WHERE userid=%d AND cat_id=%d LIMIT 1";
                                        break;
                        }
@@ -130,7 +130,7 @@ 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
                        {