• 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


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

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

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