Template fixes, lesser admin data will be loaded from database
[mailer.git] / inc / modules / member / what-transfer.php
index 8dd49ab5b81a3064672295cf4f234606a11cea90..ce4d26c8b7ad49051c01d4ee05d7cd8829c20580 100644 (file)
@@ -201,8 +201,7 @@ case "new": // Start new transfer
                         __FILE__, __LINE__);
 
                        // Add points to account *directly* ...
-                       $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_points SET points=points+%s WHERE userid=%s AND ref_depth=0 LIMIT 1",
-                        array(bigintval($_POST['points']), bigintval($_POST['to_uid'])), __FILE__, __LINE__);
+                       ADD_POINTS_REFSYSTEM(bigintval($_POST['to_uid']), bigintval($_POST['points']), false, "0", false, "direct");
 
                        // ... and add it to current user's used points
                        SUB_POINTS($GLOBALS['userid'], $_POST['points']);