]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/doubler_functions.php
Mailer project rwritten:
[mailer.git] / inc / libs / doubler_functions.php
index 6ca451b69a3fe7d4e567e502d5edf9ba693bb061..9734b6037790c1779dfbd048a808ecaa6c2f1b40 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 // @TODO Lame description
 function generateDoublerTable ($userid = NULL, $done = 'N', $ref = 'N', $sort = 'ASC') {
        $add = ''; $DT_MODE = '0';
-       if (isValidUserId($userid)) {
+       if (isValidId($userid)) {
                // Load entries only from a single user
                $add = sprintf(" AND `userid`=%s", bigintval($userid));
                $mode = 'member'; $COLS = 4; $DT_MODE = 2;
@@ -100,8 +100,8 @@ LIMIT %s",
                                $content['refid']  = '---';
 
                                // Set links to admin area
-                               if (isValidUserId($content['userid'])) $content['userid'] = generateUserProfileLink($content['userid']);
-                               if (isValidUserId($content['refid']))  $content['refid']  = generateUserProfileLink($content['refid']);
+                               if (isValidId($content['userid'])) $content['userid'] = generateUserProfileLink($content['userid']);
+                               if (isValidId($content['refid']))  $content['refid']  = generateUserProfileLink($content['refid']);
                        } // END - if
 
                        // Prepare data for the row template
@@ -143,7 +143,7 @@ function getDoublerTotalPointsLeft() {
                if (!empty($jackpot)) $points += $jackpot;
        } // END - if
 
-       if (isValidUserId(getDoublerUserid())) {
+       if (isValidId(getDoublerUserid())) {
                // Get user's points
                $user = getTotalPoints(getDoublerUserid());
                $points += $user;