? .svn
? faq_btt_killer.patch
? faq_btt_killer2.patch
? includes/.svn
? translations/.svn
Index: faq.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/faq/faq.module,v
retrieving revision 1.1.4.52.2.95
diff -u -p -r1.1.4.52.2.95 faq.module
--- faq.module	4 Jan 2009 20:42:34 -0000	1.1.4.52.2.95
+++ faq.module	18 Sep 2009 13:39:09 -0000
@@ -1100,7 +1100,9 @@ function faq_view_answer(&$data, $node, 
   }
 
   // Add "back to top" link.
-  $node->links['faq_back_to_top'] = $back_to_top;
+  if (!empty($back_to_top)) {
+    $node->links['faq_back_to_top'] = $back_to_top;
+  }
 
   $content = drupal_render($node->content);
   node_invoke_nodeapi($node, 'alter', $teaser, 0);
@@ -1127,7 +1129,7 @@ function faq_view_answer(&$data, $node, 
  */
 function faq_init_back_to_top($path) {
   $back_to_top = array();
-  $back_to_top_text = variable_get('faq_back_to_top', 'Back to Top');
+  $back_to_top_text = trim(variable_get('faq_back_to_top', 'Back to Top'));
   if (!empty($back_to_top_text)) {
     $back_to_top = array(
       'title' => $back_to_top_text,
