Footer is back on in installation phase, fix for strange error message from header()
authorRoland Häder <roland@mxchange.org>
Tue, 9 Jun 2009 19:15:11 +0000 (19:15 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 9 Jun 2009 19:15:11 +0000 (19:15 +0000)
inc/footer.php
inc/wrapper-functions.php

index 68432f83c4475df9b7e30d05261abf8cf4ff5229..e691b2ce62b86154637b764460063d9ab70c1f9f 100644 (file)
@@ -53,7 +53,7 @@ if ((((!isset($GLOBALS['footer_sent'])) || (($GLOBALS['footer_sent'] != '1') &&
        } // END - if
 
        // Shall we display the copyright notice?
-       if ((!REQUEST_ISSET_GET('frame')) && (basename($_SERVER['PHP_SELF']) != 'mailid_top.php') && (getConfig('WRITE_FOOTER') == 'Y') && ($GLOBALS['header_sent'] == '2')) {
+       if ((!REQUEST_ISSET_GET('frame')) && (basename($_SERVER['PHP_SELF']) != 'mailid_top.php') && ((getConfig('WRITE_FOOTER') == 'Y') || (isInstalling())) && ($GLOBALS['header_sent'] == '2')) {
                // Backlink enabled?
                if ((getConfig('ENABLE_BACKLINK') == 'Y') || (isInstalling())) {
                        // Copyright with backlink, thanks! :-)
index 3b3b9b29275d1e92a89b551497c09573c01892ce..54ffb3db3a964ee5b116b7c122be951864ac4272 100644 (file)
@@ -378,7 +378,7 @@ function sendHeader ($header) {
        } // END - if
 
        // Send the header
-       header($header);
+       header(trim($header));
 }
 
 // Wrapper function for chmod()