Floren
Well-known member
I was wondering if is not "wiser" to use a proper Boolean usage of conditionals in XenForo:
Should be:
This will avoid all warnings spit by PHP, if your variable is not truly Boolean.
Code:
$logoLink = ($options->logoLink ? $homeLink : XenForo_Link::buildPublicLink('full:index'));
Code:
$logoLink = (bool) $options->logoLink
? $homeLink
: XenForo_Link::buildPublicLink('full:index');