diff options
author | xue <> | 2006-07-04 13:56:42 +0000 |
---|---|---|
committer | xue <> | 2006-07-04 13:56:42 +0000 |
commit | 088225e3348808d28b9dfe6347589a51a5235efe (patch) | |
tree | 99b08d1f64c1a070149d126e754555c5f03506b6 /framework/Web | |
parent | a3871f4b80c244a9967eb98b54b7c8c520a3cade (diff) |
Added type checking when applyItemStyles in TDataGrid.
Diffstat (limited to 'framework/Web')
-rw-r--r-- | framework/Web/UI/WebControls/TDataGrid.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/TDataGrid.php b/framework/Web/UI/WebControls/TDataGrid.php index ab956d9c..1a81974e 100644 --- a/framework/Web/UI/WebControls/TDataGrid.php +++ b/framework/Web/UI/WebControls/TDataGrid.php @@ -1295,6 +1295,8 @@ class TDataGrid extends TBaseDataList implements INamingContainer foreach($this->getControls() as $index=>$item)
{
+ if(!($item instanceof TDataGridItem) && !($item instanceof TDataGridPager))
+ continue;
$itemType=$item->getItemType();
switch($itemType)
{
|