[BUGFIX] exec_SELECTcountRows returns string
authorGeorg Ringer <mail@ringerge.org>
Tue, 23 Aug 2011 04:04:06 +0000 (06:04 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Wed, 24 Aug 2011 14:07:47 +0000 (16:07 +0200)
commit12667025405c254a162c67372fc3be4c50b84f3f
treecfaac49981f119082c30df124e3be67a828087b1
parent0cebd2d4f0e674370629b4fcb663ac88ca00e908
[BUGFIX] exec_SELECTcountRows returns string

PHPdoc states that return value is either FALSE if
something strange happened or integer with the count of
records.

MySql returns strings, so an intval is needed to have integers

Change-Id: I521db73e7e9a85c2f616d869f50b3d012cdb1dcb
Resolves: #29169
Releases: 4.6, 4.5, 4.4
Reviewed-on: http://review.typo3.org/4540
Reviewed-by: Oliver Klee
Reviewed-by: Xavier Perseguers
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
t3lib/class.t3lib_db.php