]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/order.php
Fixes for sql_patches removal vs. password reset of admin
[mailer.git] / inc / modules / order.php
index 5d17312571599d36561bb3fe7cd7e613634df62e..f64f69be1d55430c86af0f5198e4f19a31d4ae0b 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__);