[TYPO3-core] RFC #16294: Bug: Relations with MM_opposite_field don't update the relation count of opposite field
Kevin Ulrich Moschallski
km at 3digit.de
Fri Dec 10 12:23:29 CET 2010
Hi,
i added the inval() function to the values.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 16294_v3.diff
Type: application/octet-stream
Size: 1928 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101210/820b57df/attachment.obj>
-------------- next part --------------
Regards,
Kevin
On 2010-12-09 21:21:57 +0100, Jigal van Hemert said:
> 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.)
More information about the TYPO3-team-core
mailing list