From c324241bd722e2eb3488c9fb5a467882b7040435 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 7 Apr 2006 15:25:07 +0000 Subject: List controls now use array keys as list item values even if the array is integer-indexed --- framework/Web/UI/WebControls/TListControl.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'framework/Web') 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); -- cgit v1.2.3