]> git.mxchange.org Git - mailer.git/blobdiff - inc/email-functions.php
Mostly ext-forced continued:
[mailer.git] / inc / email-functions.php
index e0cf2a251e3889e9ddeb2fcb8ba1c0ac42245c37..1bd2e4e7d74a3cce2e565a3874d4648738c174a9 100644 (file)
@@ -245,7 +245,10 @@ function sendGenericBuildMails ($mode, $tableName, $content, $id, $subjectPart =
        } // END - if
 
        // Is the raw userid set?
-       if (postRequestElement($userIdColumn[0], $id) > 0) {
+       if (isValidUserId(postRequestElement($userIdColumn[0], $id))) {
+               // Set it in content
+               $content[$userIdColumn[0]] = bigintval(postRequestElement($userIdColumn[0], $id));
+
                // Load email template
                if (!empty($subjectPart)) {
                        $mail = loadEmailTemplate('member_' . $mode . '_' . strtolower($subjectPart) . '_' . $tableName[0], $content);