? .svn
? patches
? contrib/.svn
? contrib/buddylistautoadd/.svn
? contrib/buddylistinvite/.svn
? po/.svn
Index: buddylist.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/buddylist/buddylist.module,v
retrieving revision 1.68.2.32
diff -u -p -r1.68.2.32 buddylist.module
--- buddylist.module	6 Sep 2007 21:29:19 -0000	1.68.2.32
+++ buddylist.module	7 Sep 2007 16:40:24 -0000
@@ -349,7 +349,7 @@ function buddylist_admin_settings() {
     '#type' => 'textarea',
     '#title' => t('Show this text in "My @buddies list" if @buddylist is empty', buddylist_translation()),
     '#weight' => 3,
-    '#default_value' => variable_get('buddylist_empty_text', t(buddylist_empty_text_default(), buddylist_translation())),
+    '#default_value' => variable_get('buddylist_empty_text', buddylist_empty_text_default()),
     '#description' => t('If a user has no @buddies and the above checkbox is checked, this message is shown instead of a list.', buddylist_translation()),
   );
 
@@ -600,7 +600,7 @@ function buddylist_block($op = 'list', $
           // buddylist is empty
           if(variable_get('buddylist_block_if_no_buddies', FALSE)) {
             // Show a message that we have no buddies yet
-            $block['content'] = variable_get('buddylist_empty_text', t(buddylist_empty_text_default(), buddylist_translation()));
+            $block['content'] = t(variable_get('buddylist_empty_text', buddylist_empty_text_default()), buddylist_translation());
           } else {
             // If no buddies defined and no message available, end 'case' without returning block.
             break;
@@ -813,7 +813,8 @@ function theme_buddylisting($account, $b
     $output .= theme('table', $header, $rows);
   }
   else {
-    $output .= variable_get('buddylist_empty_text', t(buddylist_empty_text_default(), buddylist_translation()));
+  drupal_set_message(variable_get('buddylist_empty_text', buddylist_empty_text_default()));
+    $output .= t(variable_get('buddylist_empty_text', buddylist_empty_text_default()), buddylist_translation());
   }
 
   $output .= theme('pager', NULL, $buddies_per_page);
