// Output new location link as anchor
outputHtml('<a href="' . $URL . '"' . $rel . '>' . $URL . '</a>');
} elseif (!headers_sent()) {
- // Load URL when headers are not sent
//* DEBUG: */ debug_report_bug("URL={$URL}");
+ // Clear own output buffer
+ $GLOBALS['output'] = '';
+
+ // Load URL when headers are not sent
sendHeader('Location: '.str_replace('&', '&', $URL));
} else {
// Output error message
if (!isConfigEntrySet('index_cookie')) setConfigEntry('index_cookie', 0);
// Check for cookies
-if ((isSessionVariableSet('visited')) || (getConfig('index_delay') > 0)) {
+if ((isSessionVariableSet('visited')) || (getConfig('index_delay') > -1)) {
// Is the index page configured for redirect pr not?
if (getConfig('index_cookie') > 0) {
// Set cookie and remeber it for specified time