[TYPO3-dev] class t3lib_loadDBGroup

Dmitry Dulepov 9f4eetb02 at sneakemail.com
Mon Mar 12 20:00:16 CET 2007


Ferry de Groot wrote:
> I was looking at the class t3lib_loadDBGroup and I noticed something 
> strange. In the function readyForInterface() is the line:
> 
> $perms_clause = $GLOBALS['BE_USER']->getPagePermsClause(1);        // 
> For use when getting the paths....
> 
> The variable $perms_clause isn't used again in the function. Also, when 
> I comment out this line, everything still works.
> 
> Now my question is: why is this line there?

Easy. It is dead code. It happens sometimes if function is heavily 
modified: parts of old code remain...

-- 
Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)




More information about the TYPO3-dev mailing list