]> git.mxchange.org Git - mailer.git/blobdiff - surfbar.php
Introduced new function capitalizeUnderscoreString(), rewritten 'do' parameter:
[mailer.git] / surfbar.php
index 63facf329f15a92886fa1e1fabc9bd9c8fb0a6d7..4bfb8caaaf44ed98aa718246ce9f4234a7a9ecbc 100644 (file)
@@ -122,12 +122,9 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestParameterSet('frame')) && (in
                // This makes the footer appear again
                unsetGetRequestParameter('frame');
        } elseif ((isGetRequestParameterSet('frame')) && (getRequestParameter('frame') == 'stats')) {
-               // Get total points amount
-               $points = countSumTotalData(getMemberId(), 'user_points', 'points') - countSumTotalData(getMemberId(), 'user_data', 'used_points');
-
                // Prepare content
                $content = array(
-                       'points' => $points,
+                       'points' => getTotalPoints(getMemberId()),
                        'reload' => (getConfig('surfbar_stats_reload') * 1000)
                );