X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffilter%2Forder_filter.php;h=dd80fcdc355d33a1217c8a0f2e528ac5b94029e0;hb=1972cc4b6538e319712a70421f1d311decfc8bf9;hp=9a37798888e585068fdcd80d9a2bdcdbdeabb752;hpb=adb05fb6876bdca84e73f4ea04998c1400e2cfb7;p=mailer.git diff --git a/inc/filter/order_filter.php b/inc/filter/order_filter.php index 9a37798888..dd80fcdc35 100644 --- a/inc/filter/order_filter.php +++ b/inc/filter/order_filter.php @@ -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) { + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!'); // Is ext-user installed and active? if (isExtensionActive('user')) { // Get the points and add them to the existing - $data['points'] += countSumTotalData($content['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]