[Typo3-dev] TS-Setup2Array - Bug or "Feature"?
    Stefan Beylen 
    intsys at swissinfo.org
       
    Mon Jun 13 11:43:25 CEST 2005
    
    
  
Hello List,
Just a question, maybe I am wrong and this behaviour is wanted...you decide:
I want to set an array via TS-Setup:
---8<---snip
gender{
	type = radio
	options{
		0{
			name = Male
		}
		1{
			name = Female
		}
	}
}
---8<---snap
problem is, on print_r($conf); some strange thing is happening to the "0"
so the array looks like this:
---8<---snip
[gender.] => Array
     (
         [type] => radio
         [options.] => Array
             (
                 [name] => Male
             )
         [1.] => Array
             (
                 [name] => Female
             )
     )
---8<---snap
while it should look (IMHO) like this:
---8<---snip
[gender.] => Array
     (
         [type] => radio
         [options.] => Array
             (
                 [0.] => Array
                     (
                         [name] => Male
                     )
                 [1.] => Array
                     (
                         [name] => Female
                     )
             )
     )
---8<---snap
am I wrong?
have a nice monday!
    
    
More information about the TYPO3-dev
mailing list