]> git.mxchange.org Git - mailer.git/blobdiff - inc/filter/user_filter.php
Fix for previous commit
[mailer.git] / inc / filter / user_filter.php
index d0b8cdc5c4dbe760f484fc7ea0f11aa1a8e9dd78..fbc0e5e2fe34faeb7f33983729ba55199aa23dc8 100644 (file)
@@ -41,12 +41,14 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Filter for returning given user's points
-function FILTER_USER_POINTS ($data) {
+function FILTER_USER_POINTS ($filterData) {
        // Get the points and add them to the existing
-       $data['points'] += countSumTotalData($content['userid'], 'user_points', 'points');
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
+       $filterData['points'] += countSumTotalData($filterData['userid'], 'user_points', 'points');
 
        // Return the data for next filter
-       return $data;
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+       return $filterData;
 }
 
 // [EOF]