[TYPO3-core] RFC: #10954: Validation issue: Images with empty attributes in Module menu in BE

Bernhard Kraft kraftb at kraftb.at
Wed Apr 22 18:43:39 CEST 2009


Oliver Klee schrieb:
> Hi,
> 
> +1 by reading if you change the !empty to != '' (to make your intent
> clearer, because the variable is a string, not an array).

Always take care when using compares to a string ... like:

=='test1'
or
!='test2'

Have a look at the following script:

http://rafb.net/p/GC0FUB80.html

It does not output what you expect at the first (non-typed) look ;)


greets,
Bernhard
-- 
Freiheit ist immer Freiheit des Andersdenkenden.
Rosa Luxemburg, 1871-1919
--------------------------------------------------
www.think-open.at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3246 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090422/f5bd7359/attachment.bin 


More information about the TYPO3-team-core mailing list