]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/order.php
Fixed 'payments' cache (all array elements must have 'id' based index)
[mailer.git] / inc / modules / order.php
index 484ba98daff96555d28ba2feef79bbd101586848..915500d4d7aba0bf78abef0429f65ad1d269ac77 100644 (file)
@@ -95,7 +95,7 @@ if (empty($url)) {
                } // END - if
 
                // Calculate used points
-               $content['payed_points'] = $content['target_send'] * getPaymentPoints($content['payment_id']);
+               $content['payed_points'] = $content['target_send'] * getPaymentData($content['payment_id']);
 
                // Subtract them from the user's account and ignore return status
                subtractPoints('order', getMemberId(), $content['payed_points']);