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

thedude

Well-known member
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
 
Top Bottom