Index: trunk/kernel/include/debugger.php
===================================================================
diff -u -r2678 -r2744
--- trunk/kernel/include/debugger.php (.../debugger.php) (revision 2678)
+++ trunk/kernel/include/debugger.php (.../debugger.php) (revision 2744)
@@ -510,7 +510,7 @@
* Generates report
*
*/
- function printReport($returnResult = false)
+ function printReport($returnResult = false, $clean_output_buffer = true)
{
if( dbg_ConstOn('DBG_SKIP_REPORTING') ) return;
@@ -529,7 +529,7 @@
$this->appendHTML('Hide Debugger');
$this->moveToBegin(1);
- if( dbg_ConstOn('DBG_SQL_PROFILE') && getArrayValue($this->ProfilerTotals, 'sql') )
+ if( dbg_ConstOn('DBG_SQL_PROFILE') && isset($this->ProfilerTotals['sql']) )
{
$this->appendHTML('SQL Total time: '.$this->ProfilerTotals['sql']);
}
@@ -575,7 +575,7 @@
$i = 0; $lineCount = count($this->Data);
- ob_start();
+ if( !ob_get_length() ) ob_start();
?>