diff admajax.php @ 544:b4581dc165dc

Add output buffering.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 15 Dec 2013 23:57:05 +0200
parents 1f75523293ad
children d5ac0521ca16
line wrap: on
line diff
--- a/admajax.php	Sun Dec 15 23:48:25 2013 +0200
+++ b/admajax.php	Sun Dec 15 23:57:05 2013 +0200
@@ -495,6 +495,8 @@
 //
 // Initialize
 //
+ob_start();
+
 stSetupCacheControl();
 
 if (!stConnectSQLDB())
@@ -1525,5 +1527,12 @@
 if (!$errorSet)
   stSaveDisplayVars();
 
-stDumpAJAXStatusErrors();
+
+if ($errorSet)
+{
+  ob_clean();
+  stDumpAJAXStatusErrors();
+}
+
+ob_end_flush();
 ?>
\ No newline at end of file