]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_rallyes.php
More fixes for rallye
[mailer.git] / inc / modules / admin / what-list_rallyes.php
index d4e61658fa286837de54baa8440820531e89ed66..523ff1a9587dcdc77057d4343e27ebc295ad52fd 100644 (file)
@@ -243,7 +243,8 @@ if (isset($_POST['edit']))
                        }
 
                        // Get user points
-                       $points = GET_TOTAL_DATA($uid, "user_points", "points")  - GET_TOTAL_DATA($uid, "user_data", "used_points");
+                       $points = GET_TOTAL_DATA($uid, "user_points", "points", "userid", false, " AND ref_depth=1 LIMIT 1");
+                       //* DEBUG: */ echo basename(__FILE__).":uid={$uid},points={$points},opoints={$opoints}<br />\n";
                        $content = array(
                                'sw'      => $SW ,
                                'uid'     => $uid,