summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls
diff options
context:
space:
mode:
authorxue <>2006-07-04 13:56:42 +0000
committerxue <>2006-07-04 13:56:42 +0000
commit088225e3348808d28b9dfe6347589a51a5235efe (patch)
tree99b08d1f64c1a070149d126e754555c5f03506b6 /framework/Web/UI/WebControls
parenta3871f4b80c244a9967eb98b54b7c8c520a3cade (diff)
Added type checking when applyItemStyles in TDataGrid.
Diffstat (limited to 'framework/Web/UI/WebControls')
-rw-r--r--framework/Web/UI/WebControls/TDataGrid.php2
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)
{