// 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") {