]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/order.php
More other options moved out (to config_order)
[mailer.git] / inc / modules / order.php
index 5d17312571599d36561bb3fe7cd7e613634df62e..4b7259f2e1f2e28d548e1b71f41dd8effb51d9cf 100644 (file)
@@ -58,7 +58,7 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
 if (empty($URL))
 {
        // Is the auto-send mechanism active or inactive?
-       if ($CONFIG['autosend_active'] == 'Y')
+       if ($_CONFIG['autosend_active'] == 'Y')
        {
                // Auto-send is active
                define('ADMIN_AUTOSEND',  COMPILE_CODE(ADMIN_AUTOSEND_ACTIVE));
@@ -101,7 +101,7 @@ if (empty($URL))
 
                // Update used points
                $ADD = "";
-               if ($CONFIG['order_max'] == "ORDER") $ADD = ", mail_orders=mail_orders+1";
+               if ($_CONFIG['order_max'] == "ORDER") $ADD = ", mail_orders=mail_orders+1";
                $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET used_points=used_points+%s".$ADD." WHERE userid=%d LIMIT 1",
                 array($USED, $GLOBALS['userid']), __FILE__, __LINE__);