[BUGFIX] stdWrap numRows fails due to wrong SELECT clause
authorErnesto Baschny <ernst@cron-it.de>
Tue, 17 Jul 2012 16:03:03 +0000 (18:03 +0200)
committerErnesto Baschny <ernst@cron-it.de>
Mon, 23 Jul 2012 10:44:59 +0000 (12:44 +0200)
commit8e944f09c49ad51b03c7492f0f0647a7b9ab1c88
tree0a09f73eca1df8d33b321cabdf61958ab1bf1ca9
parentb0f3efdadab0a63ea02abfb867a7ffc5d049bd8b
[BUGFIX] stdWrap numRows fails due to wrong SELECT clause

Exclude aggregate functions count(), sum(), max(),
min(), avg() in if statement inside
tslib_cObj::sanitizeSelectPart().

Change-Id: I1fc1360ffc239695f0c04ca2322870a2129133ec
Fixes: #34152
Releases: 4.5, 4.6, 4.7, 6.0
Reviewed-on: http://review.typo3.org/12999
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
tests/typo3/sysext/cms/tslib/tslib_contentTest.php
typo3/sysext/cms/tslib/class.tslib_content.php