X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=ce97e2fc257d6817891f654563e482dd76c5e08d;hb=9cb21d53382dd6d36b6792677cc98f36caeec634;hp=1520f1191589d24b8c4d5c1f94ee645459b0c6af;hpb=964a3b539e335f6d70e7779630fd3d25fd38398d;p=mailer.git diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 1520f11915..ce97e2fc25 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -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, '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