]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/doubler_functions.php
Duplicate message id GUEST_GENDER removed, column type TIMESTAMP in ext-sponsor,
[mailer.git] / inc / libs / doubler_functions.php
index 85dad12df4fb96c36c62183bd660ea66804f4b3c..4b550e706d5e7c924225dca0d0399c69edc4c978 100644 (file)
@@ -47,15 +47,15 @@ if (!defined('__SECURITY')) {
 function generateDoublerTable ($userid = '0', $done = 'N', $ref = 'N', $sort = 'ASC') {
        if (empty($cnt)) $cnt = '0';
        $add = ''; $DT_MODE = '0';
-       if ($userid > 0) {
+       if (isValidUserId($userid)) {
                // Load entries only from a single user
                $add = sprintf(" AND `userid`=%s", bigintval($userid));
                $mode = 'member'; $COLS = 4; $DT_MODE = 2;
-               $message = '{--DOUBLER_MEMBER_NO_ENTRIES_FOUND--}';
+               $message = '{--MEMBER_DOUBLER_NO_ENTRIES_FOUND--}';
        } else {
                // Guest mode!
                $mode = 'guest'; $COLS = 3; $DT_MODE = 3;
-               $message = '{--DOUBLER_GUEST_NO_ENTRIES_FOUND--}';
+               $message = '{--GUEST_DOUBLER_NO_ENTRIES_FOUND--}';
        }
 
        if (($done == 'Y') && ($sort == 'ASC')) {