]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/bonus_functions.php
New wrapper function introduced, more EL rewrites:
[mailer.git] / inc / libs / bonus_functions.php
index c6768029f0219a4162909c4c336b4cbefb002ffc..25a7974dde0fc8f4fb6b8007c8b8fff5e5325da5 100644 (file)
@@ -235,7 +235,7 @@ function handleBonusPoints ($mode) {
        }
 
        // Check his amount first
-       $total = countSumTotalData(getBonusUserId(), 'user_points', 'points') - countSumTotalData(getBonusUserId(), 'user_data', 'used_points');
+       $total = getTotalPoints(getBonusUserId());
 
        // Subtract points from...
        switch (getConfig('bonus_mode')) {