]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Naming convention on language strings applied, ACL handling fixed:
[mailer.git] / inc / wrapper-functions.php
index f311eb72dc01c131c46224ab06fe649594fc4ad1..ce97e2fc257d6817891f654563e482dd76c5e08d 100644 (file)
@@ -2336,7 +2336,7 @@ function getTotalPoints ($userid) {
        // Do we have cache?
        if (!isset($GLOBALS[__FUNCTION__][$userid])) {
                // Determine it
-               $GLOBALS[__FUNCTION__][$userid] = countSumTotalData($userid, 'user_points', 'points') - countSumTotalData($userid, 'order_points', 'points') - countSumTotalData($userid, 'user_data', 'used_points');
+               $GLOBALS[__FUNCTION__][$userid] = countSumTotalData($userid, 'user_points', 'points') - countSumTotalData($userid, 'user_points', 'order_points') - countSumTotalData($userid, 'user_data', 'used_points');
        } // END - if
 
        // Return cache