]> git.mxchange.org Git - mailer.git/blobdiff - inc/pool/pool-user.php
Fix for SQL with ref_depth=NULL
[mailer.git] / inc / pool / pool-user.php
index 77ab6bc0372bd155f142792f5de1616f4ec62cc4..bc832f06251617b24ae5a2433ec57ec22b9bea4b 100644 (file)
@@ -255,6 +255,7 @@ if (!SQL_HASZERONUMS($result_main)) {
                                                if (isValidUserId($userid)) {
                                                        // User does not exists, pay points back
                                                        $points = getPaymentPoints($mailData['payment_id']);
+                                                       initReferalSystem();
                                                        addPointsThroughReferalSystem('pool_payback', $mailData['sender_userid'], $points);
 
                                                        // Add points together and remove user