[TYPO3-core] BUG found?! [was: Re: RFC: enhance UPDATE/INSERT-API]

Karsten Dambekalns karsten at typo3.org
Thu Jan 19 19:21:22 CET 2006


Hi.

On Thursday 19 January 2006 18:09, Martin Kutschker wrote:
> > Solution: Add a new parameter that contains a list of keys NOT to
> > quote.
>
> Commited.

Ahem. This should have been noted earlier, but I think I just found a bug in 
fullQuoteArray():

 foreach($arr as $k => $v)       {
   if (!in_array($v,$noQuote))     {
     $arr[$k] = $this->fullQuoteStr($v, $table);
   }
 }

The in_array() checks the value(!) against $noQUote, not the field, which is 
in $k.

Karsten
-- 
Karsten Dambekalns
TYPO3 Association - Active Member
http://association.typo3.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060119/42eb7485/attachment.pgp 


More information about the TYPO3-team-core mailing list