]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-categories.php
Mahor rewrite:
[mailer.git] / inc / modules / member / what-categories.php
index 3a7bbc9e04e4bdb43af54342170cbc0bc0b7ed27..796eb90adfe55d29cadcf5fec4c087120576d203 100644 (file)
@@ -59,7 +59,7 @@ if ($cats > 0)
                {
                        if ($joined == "N") $cnt++;
                }
-               if (($cats - $cnt) < $_CONFIG['least_cats'])
+               if (($cats - $cnt) < getConfig('least_cats'))
                {
                        unset($_POST['ok']);
                        $LEAST = true;
@@ -71,7 +71,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=%s AND cat_id=%s LIMIT 1",
                                         array($UID, bigintval($cat)), __FILE__, __LINE__);
@@ -87,7 +87,7 @@ if ($cats > 0)
                                        }
                                        break;
 
-                               case 'N':
+                               case "N":
                                        $sql = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_user_cats WHERE userid=%s AND cat_id=%s LIMIT 1";
                                        break;
                        }
@@ -105,7 +105,7 @@ if ($cats > 0)
                if ($LEAST)
                {
                        // Also here we have to secure it... :(
-                       LOAD_TEMPLATE("admin_settings_saved", true, CATS_LEAST.": ".$_CONFIG['least_cats']);
+                       LOAD_TEMPLATE("admin_settings_saved", true, CATS_LEAST.": ".getConfig('least_cats'));
                }
                // Put some data into constants for the template
                define('__ROWS', ($cats*2+4));