X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fpool-update.php;h=6f1fc8f9f90a89988d918316f2dd3c3d0c574254;hp=3c6015d66cb524dff7927666fc7c5836b1d13a12;hb=811c2a74188a97591fb05ed1dd3d1929b8bc23aa;hpb=e29553ed2308e373d899cc18c0a89a34d2a1c754 diff --git a/inc/pool-update.php b/inc/pool-update.php index 3c6015d66c..6f1fc8f9f9 100644 --- a/inc/pool-update.php +++ b/inc/pool-update.php @@ -275,16 +275,7 @@ if (SQL_NUMROWS($result_main) > 0) { // User does not exists, pay points back $points = GET_PAY_POINTS($DATA[5]); - $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_points SET points=points+%s WHERE userid=%s AND ref_depth=0 LIMIT 1", - array($points, bigintval($DATA[1])), __FILE__, __LINE__); - - // Update mediadata as well - if (GET_EXT_VERSION("mediadata") >= "0.0.4") - { - // Update database - //* DEBUG: */ echo "*MEDIA/L:".__LINE__."/".$points."*
"; - MEDIA_UPDATE_ENTRY(array("total_points"), "add", $points); - } + ADD_POINTS_REFSYSTEM($DATA[1], $points, false, "0", false, "direct"); // Add points together and remove user $points_BACK[$DATA[1]] += $points;