[BUGFIX] sql_free_result does not work with all allowed types 94/22594/3
authorWouter Wolters <typo3@wouterwolters.nl>
Fri, 26 Jul 2013 14:35:18 +0000 (16:35 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Fri, 11 Apr 2014 23:22:02 +0000 (01:22 +0200)
commit367a65f3bc9c53f3f7c80ff12db302485282fcf6
tree4008d63113d3d44f23106871705cf4a0feb46e8d
parent25c60e4478f97036df56563071873c5fcf683147
[BUGFIX] sql_free_result does not work with all allowed types

sql_free_result throws a fatal error when called with a
boolean. According to the method description boolean is an
allowed type. Check if $res is an object.

Change-Id: I6f7cdbb42c07869a320510e9b0b779f2b7cf6b70
Resolves: #50378
Releases: 6.2, 6.1
Reviewed-on: https://review.typo3.org/22594
Reviewed-by: Dan Untenzu
Tested-by: Dan Untenzu
Reviewed-by: Christian Kuhn
Reviewed-by: Stefan Neufeind
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Classes/Database/DatabaseConnection.php