[TYPO3-core] FYI24: #9522: t3lib_BEfunc::BEenableFields generates invalid SQL

Dmitry Dulepov dmitry at typo3.org
Thu Oct 9 09:37:13 CEST 2008


Hi!

This is SVN patch request.

Type: bug, trivial

Branches: trunk, 4.1, 4.2

BT reference: http://bugs.typo3.org/view.php?id=9522

Problem: if there are not enable fields for the table, this function will generate " AND " string, which is invalid SQL. 

Solution: add "AND" only if generated condition is not empty.

Notes: yes, I thought about compatibility and I do not see any way that it can be broken with this patch ;)

-- 
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/duplicate_content_with_realurl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9522.diff
Type: text/x-diff
Size: 488 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081009/b1311d23/attachment.diff 


More information about the TYPO3-team-core mailing list