Mercurial > hg > fapweb
diff usrajax.php @ 544:b4581dc165dc
Add output buffering.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 15 Dec 2013 23:57:05 +0200 |
parents | 6e9d03f10328 |
children | ed2247111fdd |
line wrap: on
line diff
--- a/usrajax.php Sun Dec 15 23:48:25 2013 +0200 +++ b/usrajax.php Sun Dec 15 23:57:05 2013 +0200 @@ -50,6 +50,8 @@ exit; } +ob_start(); + stSetupCacheControl(); if (!stConnectSQLDB()) @@ -134,5 +136,11 @@ break; } -stDumpAJAXStatusErrors(); +if ($errorSet) +{ + ob_clean(); + stDumpAJAXStatusErrors(); +} + +ob_end_flush(); ?> \ No newline at end of file