diff options
Diffstat (limited to 'framework/Web/UI')
-rwxr-xr-x | framework/Web/UI/ActiveControls/TCallbackResponseAdapter.php | 8 |
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().'-->'; } } |