diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Web/UI/WebControls/TDataGridColumn.php | 5 | ||||
-rw-r--r-- | framework/Web/UI/WebControls/TTableCell.php | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/framework/Web/UI/WebControls/TDataGridColumn.php b/framework/Web/UI/WebControls/TDataGridColumn.php index 30349244..f0d088d2 100644 --- a/framework/Web/UI/WebControls/TDataGridColumn.php +++ b/framework/Web/UI/WebControls/TDataGridColumn.php @@ -346,9 +346,8 @@ abstract class TDataGridColumn extends TApplicationComponent }
break;
case TDataGrid::IT_FOOTER:
- if(($text=$this->getFooterText())==='')
- $text=' ';
- $cell->setText($text);
+ if(($text=$this->getFooterText())!=='')
+ $cell->setText($text);
break;
}
}
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(' ');
}
}
|