[BUGFIX] sql_free_result does not work with all allowed types 13/29413/2
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:29:04 +0000 (01:29 +0200)
commitb93d9b456eea5e48ec9426931e0f9e0d3acc8211
tree80f93d29b484aa0d24a199e17c995ffecede68fd
parenta8963501945171cc00124c9e0628dcd41fb1cbf1
[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/29413
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Classes/Database/DatabaseConnection.php