]> git.mxchange.org Git - mailer.git/blobdiff - inc/pool/pool-user.php
Fixed 'payments' cache (all array elements must have 'id' based index)
[mailer.git] / inc / pool / pool-user.php
index 83032754aaa984f6f3b02368d5040088563817b5..01845b720c590cf5131eda1f1b2c3c9e230b96ae 100644 (file)
@@ -178,8 +178,8 @@ if (!SQL_HASZERONUMS($result_main)) {
                                                                $mailData['stats_id'] = bigintval($stats_id);
 
                                                                // Prepare content
-                                                               $mailData['time']   = getPaymentPoints($mailData['payment_id'], 'time');
-                                                               $mailData['points'] = getPaymentPoints($mailData['payment_id'], 'payment');
+                                                               $mailData['time']   = getPaymentData($mailData['payment_id'], 'time');
+                                                               $mailData['points'] = getPaymentData($mailData['payment_id'], 'payment');
 
                                                                // Load message template
                                                                $mailText = loadEmailTemplate('member_user_pool_normal', $mailData, bigintval($userid));
@@ -230,7 +230,7 @@ if (!SQL_HASZERONUMS($result_main)) {
                                                        'cat_id'        => $mailData['cat_id'],
                                                        'text'          => $mailData['text'],
                                                        'url'           => $mailData['url'],
-                                                       'expiration'    => '{%pipe,createFancyTime=' . getPaymentPoints($mailData['payment_id'], 'time') . '%}'
+                                                       'expiration'    => '{%pipe,createFancyTime=' . getPaymentData($mailData['payment_id'], 'time') . '%}'
                                                );
 
                                                // Yes we do, so we notify admin and sender about fully sent mail!
@@ -293,7 +293,7 @@ if (!SQL_HASZERONUMS($result_main)) {
                                                // Is the userid set?
                                                if (isValidUserId($userid)) {
                                                        // User does not exists, pay points back
-                                                       $points = getPaymentPoints($mailData['payment_id']);
+                                                       $points = getPaymentData($mailData['payment_id']);
                                                        initReferralSystem();
                                                        addPointsThroughReferralSystem('pool_payback', $mailData['sender_userid'], $points);