Fix for order module
[mailer.git] / inc / modules / order.php
index e617ab9..01f89fa 100644 (file)
@@ -90,7 +90,7 @@ if (empty($URL)) {
                // Update used points
                $ADD = "";
                if ($_CONFIG['order_max_full'] == "ORDER") $ADD = ", mail_orders=mail_orders+1";
-               SUB_POINTS($GLOBALS['userid']), $USED);
+               SUB_POINTS($GLOBALS['userid'], $USED);
 
                // Update mediadata as well
                if (GET_EXT_VERSION("mediadata") >= "0.0.4") {