Index: user_relationship_blocks.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/user_relationships/plugins/user_relationship_blocks/user_relationship_blocks.module,v
retrieving revision 1.2
diff -u -r1.2 user_relationship_blocks.module
--- user_relationship_blocks.module	20 Dec 2007 17:28:58 -0000	1.2
+++ user_relationship_blocks.module	8 Jan 2008 18:56:01 -0000
@@ -179,13 +179,13 @@
   }
 
   // select the appropriate set of relationships based on admin's configuration settings
-  switch (variable_get("user_relationships_block_{$block}_t_{$rtid}_which_rels", 'newest')) {
+  switch (variable_get("user_relationships_block_{$block_type}_t_{$rtid}_sort", 'newest')) {
     case 'newest': $order = 'updated_at DESC'; break;
     case 'oldest': $order = 'updated_at ASC'; break;
     case 'random': $order = 'RAND()'; break;
   }
 
-  $limit = variable_get("user_relationships_block_{$block}_t_{$rtid}_num_rels", UR_BLOCK_DEFAULT_SIZE);
+  $limit = variable_get("user_relationships_block_{$block_type}_t_{$rtid}_size", UR_BLOCK_DEFAULT_SIZE);
 
   $key = $extra ? ($extra == 'you_to_them' ? 'requester_id' : 'requestee_id') : 'user';
   $args = array($key => $account->uid);
@@ -266,7 +266,7 @@
  * Generate the content of a non-empty My/User Relationships block
  */
 function theme_user_relationship_block_content($viewing_user, $rtid, $relationships) {
-  if (!$account) { return; }
+  if (!$viewing_user) { return; }
 
   $rows = array();
   foreach ($relationships as $relationship) {
