Several code cleanups:
[mailer.git] / inc / filter / user_filter.php
index d0b8cdc5c4dbe760f484fc7ea0f11aa1a8e9dd78..71920260f0a84127b9a88d549b464cf953d75ab6 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($content['userid'], 'user_points', 'points');
 
        // Return the data for next filter
-       return $data;
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+       return $filterData;
 }
 
 // [EOF]