From 400b9a94c3d846f868c0f19048df43949f29563f Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Tue, 6 Sep 2011 18:13:31 +0000 Subject: TCallbackResponseAdapter: avoid to flush empty boundaries (this caused all the tags to be outputted once for each flushOutput() call) --- framework/Web/UI/ActiveControls/TCallbackResponseAdapter.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Web') diff --git a/framework/Web/UI/ActiveControls/TCallbackResponseAdapter.php b/framework/Web/UI/ActiveControls/TCallbackResponseAdapter.php index d07faaa0..13679fc3 100755 --- a/framework/Web/UI/ActiveControls/TCallbackResponseAdapter.php +++ b/framework/Web/UI/ActiveControls/TCallbackResponseAdapter.php @@ -152,10 +152,10 @@ class TCallbackResponseWriter extends TTextWriter */ public function flush() { - $content = ''; - $content .= parent::flush(); - $content .= ''; - return $content; + $content = parent::flush(); + if(empty($content)) + return ""; + return ''.$content.''; } } -- cgit v1.2.3