Line 1103 of faq.module doesn't check if $back_to_top contains anything.
$node->links['faq_back_to_top'] = $back_to_top;

Quick, but undoubtedly inelegant fix for now is to change that to:

  if (!empty($back_to_top)) {
    $node->links['faq_back_to_top'] = $back_to_top;
  }

I'll look into it properly later when I get a chance.

Comments

Bodo Maass’s picture

Status: Active » Reviewed & tested by the community

The same problem happens on 5.x. Your change fixes it, and I see nothing inelegant about it.

stella’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks McJim!

Cheers,
Stella

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

stella’s picture

Released in faq 6.x-1.9 and 5.x-2.13.