Index: trunk/core/kernel/application.php
===================================================================
diff -u -r1821 -r1837
--- trunk/core/kernel/application.php (.../application.php) (revision 1821)
+++ trunk/core/kernel/application.php (.../application.php) (revision 1837)
@@ -857,13 +857,22 @@
$location = "Location: $location";
//echo " location : $location
";
- if (headers_sent() != '' || ($this->isDebugMode() && dbg_ConstOn('DBG_REDIRECT')) ) {
- /*$GLOBALS['debugger']->appendTrace();
- echo "Debug output above!!! Proceed to redirect: $a_location
";*/
- echo '';
+
+ if( $this->isDebugMode() && dbg_ConstOn('DBG_REDIRECT') )
+ {
+ $GLOBALS['debugger']->appendTrace();
+ echo "Debug output above!!! Proceed to redirect: $a_location
";
}
- else {
- header("$location");
+ else
+ {
+ if(headers_sent() != '')
+ {
+ echo '';
+ }
+ else
+ {
+ header("$location");
+ }
}
$session =& $this->recallObject('Session');