[TYPO3-core] RFC: minor optimisation of getRecordRaw()

Franz Holzinger franz at fholzinger.com
Thu Nov 30 16:15:53 CET 2006


Hello Martin,

> This is a SVN patch request.
> 
> I noticed that t3lib_BEfunc::getRecordRaw() does not free the SQL
result. 
> While changing that I have also added a LIMIT to the query as only
the 
> first found record is used.
> 
> +
> +             if ($row)       return $row;

because you touch this now:
IMHO a function should always return a result. 

Why not always ?

return $row;

+1 by reading the code


- Franz







More information about the TYPO3-team-core mailing list