[TYPO3-core] Gremlin #1571: make new content elementwizard easier to use

Martin Kutschker Martin.Kutschker at blackbox.net
Sat Nov 5 13:57:11 CET 2005


Sebastian Kurfuerst <sebastian at garbage-group.de> writes on 
Sat, 05 Nov 2005 13:49:48 +0100 (MET):

> Hi,
> 
> $tmp exists in every case, the question is just if it is an array.
> In the new patch I check $tmp with is_array, I think this is good...
> 
> What do you think?


According to the docs explode will only return FALSE if the separator is an empty string. So is_array will always be true.

Perhaps a count() == 2 is better.

Masi 



More information about the TYPO3-team-core mailing list