[TYPO3-core] RFC #16294: Bug: Relations with MM_opposite_field don't update the relation count of opposite field

Jigal van Hemert jigal at xs4all.nl
Thu Dec 9 21:21:57 CET 2010


Hi,

On 8-12-2010 12:38, Steffen Kamper wrote:
> btw - is $val['id'] reliable? Otherwise please do an intval.

No, it's not reliable. Future changes elsewhere may result in other code 
changing the value into something which is not an integer.

It's not a lot of work, so every value which goes into a query should 
either be intval'ed or (full)quoteStr'ed (or processed with a function 
which has the same result, cleanIntArray(), cleanIntList(), etc.)

-- 
Kind regards / met vriendelijke groet,

Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh


More information about the TYPO3-team-core mailing list