]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
Even more code moved, thanks to km4l again. :)
[mailer.git] / inc / functions.php
index 57431c93293b4da3e2b502bea058e760efa5f936..ff063d75f75c854f946c209e55acaaada197f321 100644 (file)
@@ -135,7 +135,7 @@ function sendEmail ($toEmail, $subject, $message, $isHtml = 'N', $mailHeader = '
                $prefix = '';
 
                // Is HTML?
-               if ($isHTML == 'Y') {
+               if ($isHtml == 'Y') {
                        // Set prefix
                        $prefix = 'html_';
                } // END - if
@@ -585,9 +585,6 @@ function redirectToUrl ($URL, $allowSpider = true) {
                // Clear own output buffer
                $GLOBALS['output'] = '';
 
-               // Set header
-               setHttpStatus('302 Found');
-
                // Load URL when headers are not sent
                sendRawRedirect(doFinalCompilation(str_replace('&', '&', $URL), false));
        } else {
@@ -2016,7 +2013,9 @@ function initMemberId () {
 // Setter for member id
 function setMemberId ($memberid) {
        // We should not set member id to zero
-       if ($memberid == '0') debug_report_bug(__FUNCTION__, __LINE__, 'Userid should not be set zero.');
+       if ($memberid == '0') {
+               debug_report_bug(__FUNCTION__, __LINE__, 'Userid should not be set zero.');
+       } // END - if
 
        // Set it secured
        $GLOBALS['member_id'] = bigintval($memberid);