[TYPO3-core] FYI: Fixed bug #7038: EM - sql_free_result() on non-resources fails

Oliver Hader oh at inpublica.de
Wed Dec 26 17:23:51 CET 2007


FYI: The attached patch was committed to SVN Trunk (rev. 2859).


Problem:
If extensions are installed which creates tables, then a warning message
is shown in the EM.
$GLOBALS['TYPO3_DB']->sql_free_result($res); should not be called after
a CREATE TABLE statement.

Solution:
Check whether the data in $res is really a valid resource by using
is_resource().

Comments:
Thanks to Franz Holzinger for pointing out this problem.

Bugtracker references:
http://bugs.typo3.org/view.php?id=7038

Branch: Trunk


olly
-- 
Oliver Hader
http://inpublica.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007038.patch
Type: text/x-diff
Size: 967 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071226/210082be/attachment.patch 


More information about the TYPO3-team-core mailing list