summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-09-06 18:13:31 +0000
committerctrlaltca@gmail.com <>2011-09-06 18:13:31 +0000
commit400b9a94c3d846f868c0f19048df43949f29563f (patch)
tree3805984e0c7a06b499bfeadd8a1421483f464d1c /framework/Web/UI
parent8783266ac456bb47d92c256524968d562a8d6e60 (diff)
TCallbackResponseAdapter: avoid to flush empty boundaries (this caused all the <!--//X-PRADO-XXX--> tags to be outputted once for each flushOutput() call)
Diffstat (limited to 'framework/Web/UI')
-rwxr-xr-xframework/Web/UI/ActiveControls/TCallbackResponseAdapter.php8
1 files changed, 4 insertions, 4 deletions
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 = '<!--'.$this->getBoundary().'-->';
- $content .= parent::flush();
- $content .= '<!--//'.$this->getBoundary().'-->';
- return $content;
+ $content = parent::flush();
+ if(empty($content))
+ return "";
+ return '<!--'.$this->getBoundary().'-->'.$content.'<!--//'.$this->getBoundary().'-->';
}
}