summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorxue <>2006-04-07 15:25:07 +0000
committerxue <>2006-04-07 15:25:07 +0000
commitc324241bd722e2eb3488c9fb5a467882b7040435 (patch)
tree77af40f332bfad3d95736058565982ea4717889b /framework/Web/UI
parent370c682479edb2fd3f40ee701f7bb4ef088e8283 (diff)
List controls now use array keys as list item values even if the array is integer-indexed
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/WebControls/TListControl.php3
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);