]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-unlock_sponsor.php
Mailer project rwritten:
[mailer.git] / inc / modules / admin / what-unlock_sponsor.php
index 831b2827924d2ffd0e37f6db99c03890881c125d..fa35a95d92c0d6cc45e3be45bea8bf2e2893aa98 100644 (file)
@@ -99,7 +99,7 @@ ORDER BY
 
                                                // Set default email
                                                $content['email'] = '{--SPONSOR_NO_ADMIN--}';
-                                               if (isValidUserId($content['admin_id'])) {
+                                               if (isValidId($content['admin_id'])) {
                                                        // Load admin's email address for contact
                                                        $content['email'] = getAdminEmail($content['admin_id']);
                                                } // END - if
@@ -143,7 +143,7 @@ LIMIT 1",
                        array($content['id']), __FILE__, __LINE__);
 
                        // Update, if applyable, referral count and points
-                       if ((isValidUserId($content['refid'])) && ($content['refid'] != $content['id'])) {
+                       if ((isValidId($content['refid'])) && ($content['refid'] != $content['id'])) {
                                // Update referral account
                                SQL_QUERY_ESC("UPDATE
        `{?_MYSQL_PREFIX?}_sponsor_data`
@@ -216,11 +216,11 @@ if (!SQL_HASZERONUMS($result)) {
                $content['sponsor_created'] = generateDateTime($content['sponsor_created'], 2);
 
                // Load row template and switch colors
-               $OUT .= loadTemplate('admin_unlock_sponsor_row', true, $content);
+               $OUT .= loadTemplate('admin_unlock_sponsor_row', TRUE, $content);
        } // END - while
 
        // Load template
-       loadTemplate('admin_unlock_sponsor', false, $OUT);
+       loadTemplate('admin_unlock_sponsor', FALSE, $OUT);
 } else {
        // No pending accounts found
        displayMessage('{--ADMIN_SPONSOR_NONE_PENDING--}');