Fixes for sql_patches removal vs. password reset of admin
[mailer.git] / inc / modules / member / what-newsletter.php
index af06409959426f419a47aac735653113c06f53b0..6d21c0c0aa7b47bff1ebbd04b35f196f28e92ee9 100644 (file)
@@ -39,7 +39,7 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
 }
  elseif (!IS_LOGGED_IN())
 {
-       LOAD_URL(URL."/modules.php?module=index");
+       LOAD_URL("modules.php?module=index");
 }
  elseif ((!EXT_IS_ACTIVE("newsletter")) && (!IS_ADMIN()))
 {
@@ -57,7 +57,7 @@ list($status, $until, $span) = SQL_FETCHROW($result);
 SQL_FREERESULT($result);
 
 // Remember charge value
-define('__CHARGE_VALUE', TRANSLATE_COMMA($CONFIG['nl_charge']));
+define('__CHARGE_VALUE', TRANSLATE_COMMA($_CONFIG['nl_charge']));
 
 if ((isset($_POST['ok'])) && ($status == "Y") && ($span == "0"))
 {
@@ -102,13 +102,13 @@ VALUES ('0', 'NEW', 'NL_UNSUBSCRIBE', '".ADMIN_NL_SUBJECT."', '".addslashes($adm
        // Set status message and submit button
        switch ($status)
        {
-       case "Y": // Receives the newsletter
+       case 'Y': // Receives the newsletter
                define('__STATUS_VALUE', NL_MEMBER_ON);
                define('__UNTIL_VALUE', "");
                define('NL_SUBMIT', NL_MEMBER_SUBMIT_OFF);
                break;
 
-       case "N": // Does not receive the newsletter
+       case 'N': // Does not receive the newsletter
                define('__STATUS_VALUE', NL_MEMBER_OFF);
                define('__UNTIL_VALUE', MAKE_DATETIME($until, "2"));
                define('NL_SUBMIT', NL_MEMBER_SUBMIT_ON);