diff msitegen.inc.php @ 752:c714140541d5

Add more data to previewTypeList array and implement array index argument in stGetFormOptionListFromArray().
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 20 Nov 2014 08:24:30 +0200
parents 330e6d79c5dc
children be0f465de86c
line wrap: on
line diff
--- a/msitegen.inc.php	Thu Nov 20 08:01:28 2014 +0200
+++ b/msitegen.inc.php	Thu Nov 20 08:24:30 2014 +0200
@@ -305,7 +305,7 @@
 }
 
 
-function stGetFormOptionListFromArray($id, $indent, $outer, $data, $active, $size = 10, $onChange = "")
+function stGetFormOptionListFromArray($id, $indent, $outer, $data, $active, $size = 10, $arrIndex = 0, $onChange = "")
 {
   $str = stGetFormOptionListStart($id, $indent, $outer, $size, $onChange);
 
@@ -313,7 +313,7 @@
   {
     $str .= stGetFormOptionListItem($indent." ", $key,
       ($key == $active),
-      is_array($value) ? $value[0] : $value);
+      is_array($value) ? $value[$arrIndex] : $value);
   }
 
   return $str.stGetFormOptionListEnd($indent, $outer);