]> git.mxchange.org Git - mailer.git/blobdiff - inc/filter/order_filter.php
Several code cleanups:
[mailer.git] / inc / filter / order_filter.php
index 87e17902ea587023230fffc782ad1c4555e0dd3a..1e508f73a5d5be5a310cea426d18825d44bb28d1 100644 (file)
@@ -41,15 +41,17 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Filter for returning given user's order points
-function FILTER_ORDER_POINTS ($data) {
+function FILTER_ORDER_POINTS ($filterData) {
        // Is ext-user installed and active?
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        if (isExtensionActive('user')) {
                // Get the points and add them to the existing
-               $data['points'] += countSumTotalData($data['userid'], 'user_points', 'order_points');
+               $filterData['points'] += countSumTotalData($filterData['userid'], 'user_points', 'order_points');
        } // END - if
 
        // Return the data for next filter
-       return $data;
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+       return $filterData;
 }
 
 // [EOF]