]> git.mxchange.org Git - mailer.git/blobdiff - inc/pool/pool-user.php
Mailer project rwritten:
[mailer.git] / inc / pool / pool-user.php
index 76aabe0042b205eb93650c5963f5ce5acfd56102..ee0bb3f0b874f9a669076e269456c8a86d482c26 100644 (file)
@@ -291,7 +291,7 @@ if (!SQL_HASZERONUMS($result_main)) {
                                                        array(bigintval($mailData['id'])), __FILE__, __LINE__);
                                        } else {
                                                // Is the userid set?
                                                        array(bigintval($mailData['id'])), __FILE__, __LINE__);
                                        } else {
                                                // Is the userid set?
-                                               if (isValidUserId($userid)) {
+                                               if (isValidId($userid)) {
                                                        // User does not exists, pay points back
                                                        $points = getPaymentData($mailData['payment_id']);
                                                        initReferralSystem();
                                                        // User does not exists, pay points back
                                                        $points = getPaymentData($mailData['payment_id']);
                                                        initReferralSystem();
@@ -321,7 +321,7 @@ if (!SQL_HASZERONUMS($result_main)) {
                // Walk through all points
                foreach ($pointsBack as $userid => $PB) {
                        // Add points only when we have points left to add and a valid user id
                // Walk through all points
                foreach ($pointsBack as $userid => $PB) {
                        // Add points only when we have points left to add and a valid user id
-                       if (($PB > 0) && (isValidUserId($userid))) {
+                       if (($PB > 0) && (isValidId($userid))) {
                                // Prepare content
                                $content = array(
                                        'points' => $PB
                                // Prepare content
                                $content = array(
                                        'points' => $PB