[BUGFIX] Fix return value of DatabaseConnection::sql_free_result() 19/31719/2
authorStefano Kowalke <blueduck@gmx.net>
Tue, 22 Jul 2014 10:57:50 +0000 (12:57 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 22 Jul 2014 11:29:12 +0000 (13:29 +0200)
commit32b99db189a9aced4889a3e44540d0e7347599af
tree9be8e2eb2110fad646d8f82f520790cda255c904
parentd66dcaa4f526200956667c0f39db478255cd4fbe
[BUGFIX] Fix return value of DatabaseConnection::sql_free_result()

In case of success the current implementation returns the result
of $res->free(). Unfortunately free() doesn't return anything.
That causes sql_free_result() to return NULL, which eventually
evaluates to FALSE.

Make sure the return value is correct and
return TRUE in case of success.

Resolves: #60457
Releases: 6.2, 6.3
Change-Id: I8756d4d2a321adc88738b9ac418207c63b312c86
Reviewed-on: https://review.typo3.org/31719
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Database/DatabaseConnection.php