summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TTableCell.php
diff options
context:
space:
mode:
authorxue <>2006-11-04 03:33:00 +0000
committerxue <>2006-11-04 03:33:00 +0000
commit3850edb7440923c6296026c658d53f44faceff55 (patch)
tree3b65305deeac2cc151d2d7fcad9f5d93af2a2207 /framework/Web/UI/WebControls/TTableCell.php
parente34500aaf1a58b05ddcc6421631a586ca9c99b77 (diff)
merge from 3.0 branch till 1489.
Diffstat (limited to 'framework/Web/UI/WebControls/TTableCell.php')
-rw-r--r--framework/Web/UI/WebControls/TTableCell.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TTableCell.php b/framework/Web/UI/WebControls/TTableCell.php
index 8b80e1f2..dad2e69b 100644
--- a/framework/Web/UI/WebControls/TTableCell.php
+++ b/framework/Web/UI/WebControls/TTableCell.php
@@ -185,10 +185,12 @@ class TTableCell extends TWebControl
*/
public function renderContents($writer)
{
- if(($text=$this->getText())==='')
+ if(($text=$this->getText())!=='')
+ $writer->write($text);
+ else if($this->getHasControls())
parent::renderContents($writer);
else
- $writer->write($text);
+ $writer->write('&nbsp;');
}
}