• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Not a bug Unnecessary empty() function call in BbCode Base.php

thedude

Well-known member
#1
Not so much a bug, but just a code cleanup issue.

In library/XenForo/BbCode/Formatter/Base.php, line 1054

PHP:
$noFollow = (empty($rendererStates['noFollowDefault']) ? '' : ' rel="nofollow"');
$rendererStates['noFollowDefault'] is either true/false, so the empty() function surrounding is not needed