diff options
author | xue <> | 2006-04-07 15:26:38 +0000 |
---|---|---|
committer | xue <> | 2006-04-07 15:26:38 +0000 |
commit | 095e118cd4469f1b77e920a0238798d23089ae8d (patch) | |
tree | 1d559fb16ee490470d68cf0cec942ff4a5467d42 /framework/Web | |
parent | 021501cb16c964b4bb43ecef6688cba64ecb257d (diff) |
Merge from 3.0 branch 871.
Diffstat (limited to 'framework/Web')
-rw-r--r-- | framework/Web/UI/WebControls/TListControl.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TListControl.php b/framework/Web/UI/WebControls/TListControl.php index ccbce4d6..37c232e6 100644 --- a/framework/Web/UI/WebControls/TListControl.php +++ b/framework/Web/UI/WebControls/TListControl.php @@ -190,8 +190,7 @@ abstract class TListControl extends TDataBoundControl else
{
$text=$object;
- if(is_string($key))
- $item->setValue($key);
+ $item->setValue("$key");
}
$item->setText($textFormat===''?$text:sprintf($textFormat,$text));
$items->add($item);
|